> 
> 
> Kathryn Tate wrote:
> > How does one signal to the compiler that the EOF has been reached
> > when writing a library file?
> >
> 
> Hello,
> 
> 
> Foo.pm:
> 
> package Foo;
> ...
> 1;
> 
> Then in your script
> use Foo;
> 
> the 1; returns true so use knows it was successful :)
> 

While true, that doesn't signal an EOF to the compiler, that is just a
statement. Any last statement's value can be used as the library's
true/false return. To tell the compiler to stop reading for source you
would need to use,

__END__

http://danconia.org


-- 
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