in reply to Clarifying the Comma Operator

Seems like an explicit pattern is easy enough:

The "=>" operator is a synonym for the comma, but forces any word (anything matching /^\w+$/ that is not a numeric literal) to its left to be interpreted as a string (as of 5.001). This includes words that might otherwise be considered a constant or function call.

Good Day,
    Dean

Replies are listed 'Best First'.
Re^2: Clarifying the Comma Operator
by zwon (Abbot) on Jun 07, 2009 at 22:32 UTC

    08z isn't numeric literal, but:

    $ perl -E'say 08z => 1' Illegal octal digit '8' at -e line 1, at end of line syntax error at -e line 1, near "08z" Execution of -e aborted due to compilation errors.