in reply to Re: exit this way
in thread exit this way
This seems like a mistake or a bad practice in Perl. exit codes are a complete mismatch for subroutine return expectations. I suppose something like this might work but still… I say, nay. Also neigh.
#!/usr/bin/env perl exit ! main(); sub main { $success = [ undef, "true" ]->[rand 2] }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: exit this way
by GrandFather (Saint) on Sep 02, 2015 at 01:57 UTC | |
|
Re^3: exit this way
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 | |
|
Re^3: exit this way
by RonW (Parson) on Sep 01, 2015 at 16:50 UTC | |
by Your Mother (Archbishop) on Sep 01, 2015 at 17:26 UTC |