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

Re^2: Deleting a matching string in an array

by naikonta (Curate)
on Oct 30, 2007 at 16:15 UTC ( #648044=note: print w/ replies, xml ) Need Help??


in reply to Re: Deleting a matching string in an array
in thread Deleting a matching string in an array

Note that grep doesn't modify its arguments (normally...),
Are you against Note that $_ is an alias to the list value, so it can be used to modify the elements of the LIST. or you mean something else?

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!


Comment on Re^2: Deleting a matching string in an array
Re^3: Deleting a matching string in an array
by moritz (Cardinal) on Oct 31, 2007 at 06:36 UTC
    Shameaso seemed to use grep as if he expected it to modify the array, although he didn't modify $_ in grep's block.

    So I thought it was noteworthy that grep doesn't do in-place grepping.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2014-08-20 22:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls