in reply to Re (2): Optimization for readability and speed (discussion)
in thread Optimization for readability and speed (code)
Either make it native Perl, or don't write it in Perl.
It's also broken as Perl. You return from the middle of the subroutine that sets $", but you don't reset it! That breaks the rest of the program. Use
this instead (if you must):
Then no matter what exit you take, the caller's value of $" is preserved.
-- Randal L. Schwartz, Perl hacker
|
---|