in reply to Re^2: sortmd5 script
in thread sortmd5 script

While the unnecessary exit is very unperlish [...] but __END__ is pretty much like a "bye" and pairs nicely with the "hello" given by the shebang line

In order to actually write a "bye", exit is just as good as __END__ (with the difference of having no option of (perl) code after __END__).

Replies are listed 'Best First'.
Re^4: sortmd5 script
by massa (Hermit) on Aug 15, 2008 at 01:58 UTC
    Exactly for that __END__ is more perlish... you put it and any text after, the text won't even be seen by the parser; text after an exit;, OTOH, must still be syntax-clean perl :-)
    []s, HTH, Massa (κς,πμ,πλ)