Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to substitute the elements in an array without changing the original array.

by Firefly258 (Beadle)
on Dec 02, 2006 at 00:46 UTC ( [id://587349]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @new = map { ... } @{[ @original ]};
    
  2. or download this
    @new = grep { local $_ = $_; ... } @original;
    
  3. or download this
    ... for @new = @original;
    
  4. or download this
    do { ...; ... } for @new = @original;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-03-28 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found