Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: array confusion

by BUU (Prior)
on Aug 21, 2003 at 06:17 UTC ( #285366=note: print w/replies, xml ) Need Help??


in reply to array confusion

when you do  for my $foo () $foo is aliased to the var. But when you assigned the scalars to a list they were copied so when you did @arr = ($foo,$baz,$bar); for(@arr){s/stuff/cling/;} you were actually affecting $arr[0],$arr[1],$arr[2] and so on.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2022-01-21 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (59 votes). Check out past polls.

    Notices?