http://qs1969.pair.com?node_id=569854


in reply to Re^2: Why is file being slurped in instead of line by line?
in thread Why is file being slurped in instead of line by line?

ahmad's point is however a good one. It is generally good practice to limit the scope of variables as far as is reasonable. It reduces the chance that a variable will be inadvertantly modified and the purpose of the variable is generally clearer.


DWIM is Perl's answer to Gödel
  • Comment on Re^3: Why is file being slurped in instead of line by line?

Replies are listed 'Best First'.
Re^4: Why is file being slurped in instead of line by line?
by zshzn (Hermit) on Aug 28, 2006 at 04:20 UTC
    I agree. However, he explained it as "To make your code works fine", and my issue was that the relevence could be misunderstood, being that the second point isn't going to make the code work any finer than it already did, or at least not in the way that the first point does. If that makes sense, that is.