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

Replies are listed 'Best First'.
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.