BOLCATO CHRIS (esm1cmb) wrote:
I added 1;
Inside sub foo and it didn't work, but I just added it to the end of foo.pl
and it worked!
I don't get it?

the 1; at the end of a file you're sue()ing returns true for the use statement. otherwise it won't be true and therefore fail..



HTH

Lee.M - JupiterHost.Net

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




Reply via email to