On Thu, 11 Jul 2002 06:14:53 +0800, [EMAIL PROTECTED] (Connie Chan)
wrote:

>Hi all, 
>
>I have an array like this 
>@path = 
>( 'C:\path1\script1.pl' , 
>'C:\path1\script2.pl' , 
>'C:\path2\script1.pl' , 
>'C:\path2\script2.pl' );
>
>Then I tried this :
>require "$_" for (@path); 
>
>It goes fail...
>
>Questions :
>1. How can I know if a "require" is success or not ?
>2. Anything wrong for what I wrote ?

You need to put a 
1;
on the lastline of each script you are requiring.
Read perldoc -f require



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to