in reply to Precedence of qw

x doesn't play by normal rules and will do things slightly funny just because the qw() used parens instead of some other delimiter. So x's special handling are higher priority just because it's special. You shouldn't infer much from it. This is likely all very implementation specific too so it could change.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

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

    No, it's not limited to just parens for delimiters. I get the same behaviour with other delimiters.

    use warnings; @array = qw!X! x 2; print @array, "\n";

    gives

    Unquoted string "x" may clash with future reserved word at 541179.pl l +ine 2. Number found where operator expected at 541179.pl line 2, near "x 2" (Do you need to predeclare x?) syntax error at 541179.pl line 2, near "qw!X! x " Execution of 541179.pl aborted due to compilation errors.