2007/8/30, Amichai Teumim <[EMAIL PROTECTED]>:
>
> I get the error:
>
> sub-lib.pl did not return a true value at ./sub.pl line 5.
>
> Why is that? The value is 1 isn't it?
>

to add 1 at the end of sub-lib.pl,it would work.
echo 1 >> sub-lib.pl

when 'require'ing a file,perl need it to return a true value.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to