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

Re^5: Array got modified!

by choroba (Canon)
on Oct 10, 2011 at 13:44 UTC ( #930637=note: print w/ replies, xml ) Need Help??

in reply to Re^4: Array got modified!
in thread Array got modified!

Yes, it's working by accident (no spaces nor * in @x). For example:

perl -E '@arr=("a b", "c d", qw/e f g h a*/); while (my $e = <@arr>) { say $e }'
gives this output for me:
a b c d e f g h address.txt address.txt~ analytic ascii.htm aux-no-lex.lst

Comment on Re^5: Array got modified!
Select or Download Code
Replies are listed 'Best First'.
Re^6: Array got modified!
by exilepanda (Monk) on Oct 10, 2011 at 16:03 UTC
    Got it! Didn't aware of it at all....
    Lesson learned!! Thanks a lot!!! =)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-10-07 20:42 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (200 votes), past polls