Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Simplifying for loop and applying multiple push function

by diotalevi (Canon)
on Dec 14, 2005 at 23:40 UTC ( [id://516806]=note: print w/replies, xml ) Need Help??


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

Why does it matter whether @one or @two are empty beforehand? Won't the status of the hash and the arrays be identical regardless?
  • Comment on Re^4: Simplifying for loop and applying multiple push function

Replies are listed 'Best First'.
Re^5: Simplifying for loop and applying multiple push function
by eric256 (Parson) on Dec 14, 2005 at 23:58 UTC

    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;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://516806]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-23 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found