Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix 0 => $arg naminess
  • Loading branch information
TimToady committed May 23, 2011
1 parent 74b208c commit 0140a6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S06-routines.pod
Expand Up @@ -706,11 +706,11 @@ the key to suppress autoquoting:
doit (when => 'now'),1,2,3; # always a positional arg
doit 'when' => 'now',1,2,3; # always a positional arg

Only bare keys with valid identifier names are recognized as named arguments:
Only bare keys with valid identifier names or integers are recognized as named arguments:

doit when => 'now'; # always a named arg
doit 'when' => 'now'; # always a positional arg
doit 123 => 'now'; # always a positional arg
doit 0 => 'now'; # always a named arg
doit :123<now>; # always a positional arg

Going the other way, pairs intended as named arguments that don't look
Expand Down

0 comments on commit 0140a6f

Please sign in to comment.