in reply to Precedence of qw
Your greeting implies the problem is related to use strict, but it isn't.
use warnings; @array = qw(X) x 2; print @array, "\n";
gives
Unquoted string "x" may clash with future reserved word at 541178.pl l +ine 2. Number found where operator expected at 541178.pl line 2, near "x 2" (Do you need to predeclare x?) syntax error at 541178.pl line 2, near "qw(X) x " Execution of 541178.pl aborted due to compilation errors.
I've noticed this bug before.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Precedence of qw
by eff_i_g (Curate) on Apr 04, 2006 at 16:58 UTC | |
by ikegami (Patriarch) on Apr 04, 2006 at 17:07 UTC | |
by diotalevi (Canon) on Apr 04, 2006 at 17:39 UTC | |
by duff (Parson) on Apr 04, 2006 at 17:02 UTC | |
by eff_i_g (Curate) on Apr 04, 2006 at 17:06 UTC | |
by diotalevi (Canon) on Apr 04, 2006 at 17:38 UTC | |
by codeacrobat (Chaplain) on Apr 04, 2006 at 21:37 UTC |