--- Mark Ross <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I'm wondering if there is a difference between:
> 
> $foo{'bar'}
> and
> $foo{bar}
> 
> Is there any important difference? I prefer to use
> single quotes (my editor handles color coding better
> that way), but in examples I see from the list, etc.
> folks don't seem to use them. Is there a reason why I
> should ditch them?

Mark,

If you like to quote them, there's no problem with that.  If you use whitespace in 
your keys,
you'll want to quote them.  I don't quote them for the same reason that I usually skip 
optional
parentheses:  I like cutting down on all of the punctuation.

Cheers,
Curtis "Ovid with excess punctuation" 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!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to