Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] perl hashes
- Date: Thu, 18 Sep 2003 16:52:13 +0900 (JST)
- From: Joe Larabell <larabell@???>
- Subject: Re: [tlug] perl hashes
- References: <20030918153325.FE09.B-ROBSON@example.com><20030918161612.FE0C.B-ROBSON@example.com>
> but surely the apostrophes aren't required? > > $qhash_ref->{spam_ch} Not if the key is easily identifiable by the parser as what perl likes to call a "bare word" (as it is in this case). If you wanted to have spaces or punctuation in your key or if you're composing a compound string like "$dir/$file.$ext", you need the apostrophes (or, in the compound string example, double quotes). And obviously, a single scalar could be put in place of the bare word without any quoting, like: $qhash_ref->{$key}. -- Joe Larabell -- Synopsys VCS Support US: larabell@example.com http://wwwin.synopsys.com/~larabell/ Japan: larabell@?jp
- Follow-Ups:
- Re: [tlug] perl hashes
- From: Brett Robson
- References:
- [tlug] perl hashes
- From: Brett Robson
- Re: [tlug] perl hashes
- From: Brett Robson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] perl hashes
- Next by Date: RE: [tlug] Backup to IDE HD instead of Tape
- Previous by thread: Re: [tlug] perl hashes
- Next by thread: Re: [tlug] perl hashes
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links