go ahead... be a heretic | |
PerlMonks |
Re: How to end a Perl scriptby dsb (Chaplain) |
on May 02, 2002 at 20:00 UTC ( [id://163657]=note: print w/replies, xml ) | Need Help?? |
1. 1; # A simple number 1 This notation is commonly used when writing modules. In order to successfully load a module at compile time, that module must return a true value. Having a 1(a valid true value) as the last command in the module ensures that at true value will be returned.
2. exit; # The exit command
3. goto BOTTOM; # goto a label at the end of the script
4. &footer; # Nothing, just the end of the script
Amel
In Section
Seekers of Perl Wisdom
|
|