in reply to Can't find list of metacharacters

Note that for $i qw(<> >^) { ... } isn't valid Perl syntax. A bug in Perl used to treat it equivalent to for $i (qw(<> >^)) { ... }, but that has been fixed.
>perl -e"for my $i qw( a b ) { }" syntax error at -e line 1, near "$i qw( a b )" Execution of -e aborted due to compilation errors.

Replies are listed 'Best First'.
Re^2: Can't find list of metacharacters
by rsFalse (Chaplain) on Oct 24, 2014 at 20:06 UTC
    Thanks for discussion and explanations, but I haven't understand why it is a bug - not using parentheses, a from when? And then - why?