Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: push foreach glob - bug?

by ikegami (Patriarch)
on Jan 13, 2010 at 22:58 UTC ( #817301=note: print w/replies, xml ) Need Help??

in reply to Re: push foreach glob - bug?
in thread push foreach glob - bug?

Modifying elements of an array over which one is iterating doesn't cause problems. It's done all the time:
s/^\s+//, s/\s+$// for @array;

Replies are listed 'Best First'.
Re^3: push foreach glob - bug?
by shmem (Chancellor) on Jan 13, 2010 at 23:10 UTC

    Right. But modifying values that way doesn't involve coercion of a string into an array reference... (I have just been giving a hint to puzzle further ;-)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://817301]
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-10-04 21:00 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (19 votes). Check out past polls.