John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
The -b is taken implicitly as '-b', but the same doesn't happen with +c.require v5.8; use strict; use warnings; my %XX; $XX{a}= 1; $XX{-b}= 2; $XX{+c}= 3; #bareword 'c' not allowed. Interpreted as + applied to f +unction call c(). print (join (", ", keys (%XX)), "\n");
Is anything allowed before, among, after the letters besides this? I can't find anything in the perldocs.
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: bareword hash keys
by merlyn (Sage) on Jun 23, 2003 at 02:38 UTC | |
by diotalevi (Canon) on Jun 23, 2003 at 03:34 UTC | |
|
Re: bareword hash keys
by dmmiller2k (Chaplain) on Jun 22, 2003 at 22:15 UTC | |
|
Re: bareword hash keys
by theorbtwo (Prior) on Jun 23, 2003 at 02:36 UTC | |
by John M. Dlugosz (Monsignor) on Jun 23, 2003 at 04:54 UTC | |
|
Re: bareword hash keys
by waswas-fng (Curate) on Jun 22, 2003 at 21:57 UTC | |
by John M. Dlugosz (Monsignor) on Jun 23, 2003 at 04:55 UTC | |
|
Re: bareword hash keys
by jkenneth (Pilgrim) on Jun 23, 2003 at 14:44 UTC | |
by Aristotle (Chancellor) on Jun 30, 2003 at 21:39 UTC |