in reply to Precedence of qw

This was fixed in perl 5.8.8:
$ perl587 -wle 'print for qw(X Y) x 2' Unquoted string "x" may clash with future reserved word at -e line 1. Number found where operator expected at -e line 1, near "x 2" (Do you need to predeclare x?) syntax error at -e line 1, near "qw(X Y) x " Execution of -e aborted due to compilation errors. $ perl588 -wle 'print for qw(X Y) x 2' X Y X Y $

Dave.

Replies are listed 'Best First'.
Re^2: Precedence of qw
by ikegami (Patriarch) on Apr 04, 2006 at 19:25 UTC

    Indeed! Quote perl588delta:

    You can now use the x operator to repeat a qw// list. This used to raise a syntax error.
Re^2: Precedence of qw
by eff_i_g (Curate) on Apr 04, 2006 at 19:46 UTC
    Thanks a bunch!