home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!mcsun!sun4nl!sci.kun.nl!cs.kun.nl!hansm
- From: hansm@cs.kun.nl (Hans Mulder)
- Subject: Re: tell me this is a feature ...
- Message-ID: <BzowBw.rn@sci.kun.nl>
- Sender: news@sci.kun.nl (News owner)
- Nntp-Posting-Host: zeus.cs.kun.nl
- Organization: University of Nijmegen, The Netherlands
- References: <cameron-921215144455-1-12966@fuligin>
- Date: Wed, 23 Dec 1992 02:02:19 GMT
- Lines: 22
-
- In <cameron-921215144455-1-12966@fuligin> cameron@cs.unsw.oz.au writes:
- >For the record, this is using perl-4.034.
-
- >This suggests that when resolving
- > $thing{index}
- >inside double quotes perl looks for %thing being defined before snarfing the
- >curly portion. Weird, eh?
-
- The fine manual says:
-
- Since in
- versions of perl prior to 3.0 the @ character was not a
- metacharacter in double-quoted strings, the interpolation of
- @array, $array[EXPR], @array[LIST], $array{EXPR}, or
- @array{LIST} only happens if array is referenced elsewhere
- in the program or is predefined.
-
- Apparently undef'ing %array makes perl forget that is has been mentioned.
-
- Weird indeed.
-
- HansM
-