Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Array got modified!

by choroba (Cardinal)
on Oct 10, 2011 at 13:44 UTC ( [id://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

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found