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:
gives this output for me:perl -E '@arr=("a b", "c d", qw/e f g h a*/); while (my $e = <@arr>) { say $e }'
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 |
In Section
Seekers of Perl Wisdom