in reply to Re^2: Simplifying for loop and applying multiple push function
in thread Simplifying for loop and applying multiple push function

That's only the same if @one and @two started out empty.

Caution: Contents may have been coded under pressure.
  • Comment on Re^3: Simplifying for loop and applying multiple push function

Replies are listed 'Best First'.
Re^4: Simplifying for loop and applying multiple push function
by diotalevi (Canon) on Dec 14, 2005 at 23:40 UTC
    Why does it matter whether @one or @two are empty beforehand? Won't the status of the hash and the arrays be identical regardless?

      How about if @one and @two arn't empty. The other answers don't empty them, this one clears out any previous values, which may or may not be desired.


      ___________
      Eric Hodges $_='y==QAe=e?y==QG@>@?iy==QVq?f?=a@iG?=QQ=Q?9'; s/(.)/ord($1)-50/eigs;tr/6123457/- \/|\\\_\n/;print;