--- Shawn <[EMAIL PROTECTED]> wrote: > > > Bare words as hash keys. > > > > And that's a problem how? > > It's a big problem when using 'strict'...
Shawn, Could you give an example of that? #!/usr/bin/perl -w use strict; my %test_hash = ( one => 'no problem', two => 'still no problem' ); print $test_hash{ one }; # prints 'no problem' (without quotes) With the '=>' (a.k.a. 'fat comma'), the left side of the operator does no need to be quoted if it does not contain whitespace. Cheers, Curtis "Ovid" Poe ===== "Ovid" on http://www.perlmonks.org/ Someone asked me how to count to 10 in Perl: push@A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//; shift@a;shift@a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]