Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Perl
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Perl section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 24th, 2007, 07:06 AM
Registered User
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting "Hooks.pm not found" error

Hi ,

My name is Roberto.
I'm fresh in perl programming, but I've done some basic scripts to use @ my work.
I´m not having problems with perl language, my only doubt is in the first line of my perl code when I point to my perl's directory.
I'm using the follow:

#!D:\Perl\bin\perl.exe -ID:\apps\TRANSS~1\bin
(I copied this from another script)

Here we have a scheduler that calls scripts to be executed in order to automate our process. But I'm having a "Hooks.pm not found" when this scheduler execute this perl. I think this happens because he is not calling the perl script from the directory where it's saved.

What I should do in my script to execute this perl script from any directory??Is it possible??

Thanx in advance!!

Country: Brazil
Old May 28th, 2007, 06:39 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post

Just a thought, can you try and set this folder/directory as global path? Hope you are using Windows OS, then edit the environment variable PATH and add this to the end separated by a semicolon.

- Vijay G
Strive for Perfection

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with am/pm in GridView nitinp ASP.NET 2.0 Basics 0 November 4th, 2006 06:11 AM
Help needed for Windows Hooks (Global Mouse Hooks) effone Visual C++ 0 October 2nd, 2006 03:28 PM
Kernel Hooks J-Rod Need help with your homework? 0 August 30th, 2006 02:21 AM
Formatting a Field Containing a Time to AM/PM taleriana XSLT 2 March 16th, 2004 11:10 PM
Time conversions from 24hr to am/pm Blaise Classic ASP Basics 2 July 14th, 2003 09:38 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.