in reply to Re: When should a wheel be reinvented
in thread When should a wheel be reinvented

All of your my $save=$_; ... $_=$saves can be replaced by local $_=$_; ...


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Replies are listed 'Best First'.
Re^3: When should a wheel be reinvented
by tachyon (Chancellor) on Jun 30, 2004 at 11:18 UTC

    Good point, not that it makes much practical difference.

      Yes, it does; wanted is AFAIK allowed to bail out with an exception (die) or loop operator (next, last, redo) or even goto.

      Update: never mind; obviously if you leave File::Find::find, that no longer cares if you modify $_.