in reply to exit this way
Another strategy that I have sometimes seen used goes something like this:
#!/usr/bin/perl exit main(); sub main { ... }
Even though the Perl language does not have the concept of a main() subroutine, these authors created one, and ensured that only it would be executed. An interesting idea ...
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: exit this way
by Your Mother (Archbishop) on Sep 01, 2015 at 14:32 UTC | |
by GrandFather (Saint) on Sep 02, 2015 at 01:57 UTC | |
by 1nickt (Canon) on Sep 01, 2015 at 15:22 UTC | |
by Your Mother (Archbishop) on Sep 01, 2015 at 15:45 UTC | |
by 1nickt (Canon) on Sep 01, 2015 at 16:16 UTC | |
by RonW (Parson) on Sep 01, 2015 at 16:50 UTC | |
by Your Mother (Archbishop) on Sep 01, 2015 at 17:26 UTC |