in reply to quoting style for lists
If I'm not completely misled: The => operator causes it's left operand to be seen as string as long as it only contains \w-characters and perhaps a leading -minus. The same rules afaik apply for $hash{keys}. In any other position you will get a bareword error from strict, which is in use anyway ;)
--print Hello => ", $name\n"; %hair = ( Peter => 'green', Charles => white => ucfirst('mary') => 're +d' ); print "your hair is ",$hair{$name},"\n", "Peter's hair is ",$hair{Peter},"\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: quoting style for lists
by Abigail-II (Bishop) on Aug 01, 2002 at 17:26 UTC | |
by fruiture (Curate) on Aug 01, 2002 at 17:50 UTC | |
by Abigail-II (Bishop) on Aug 01, 2002 at 18:00 UTC | |
by fruiture (Curate) on Aug 01, 2002 at 18:14 UTC |