On Sat, Nov 15, 2008 at 17:42, Jenda Krynicky <[EMAIL PROTECTED]> wrote: snip > The rule for automatic quoting within $hash{...} is "if it looks like > word, it doesn't have to be quoted". And - is not in the list of word > characters as far as Perl is concerned. snip
Not exactly. A hyphen is allowed at the start of a bareword as long as it doesn't look like it is part of an expression. So $foo = -foo; is the same as $foo = '-foo'; Another oddity are :: $foo = Does::Not::Exist; is the same as $foo = 'Does::Not::Exist'; And, of course, all of the characters in \w work $foo = foo_bar_123; is the same as $foo = 'foo_bar_123'; There may be other characters that are allowed, but that is the extent of my knowledge. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/