in reply to Why the change to read-only lists in 5.6.x?
So you're trying to modify constants. Note, also, that now you can directly subscript a qw(), or use it in a for statement without surrounding parentheses:foreach my $value (('a', 'b', 'c')) { $value .= '1'; print "$value\n"; }
Weird looking, eh?$vowel = qw( a e i o u )[ rand 5 ]; for qw( a e i o u ) { # ... }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|