home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!fmrco!fmrco!asherman
- From: asherman@fmrco.com (Aaron Sherman)
- Subject: Re: actually mnemonic special variable names
- In-Reply-To: eric.arnold@sun.com's message of 25 Dec 1992 01:18:17 GMT
- Message-ID: <ASHERMAN.92Dec28161655@piranha.fmrco.com>
- Sender: news@fmrco.uucp
- Reply-To: asherman@fmrco.COM
- Organization: I-Kinetics, 19 Bishop-Allen Dr., Cambridge, MA
- References: <1hdngpINN216@jethro.Corp.Sun.COM>
- Date: Mon, 28 Dec 1992 21:16:55 GMT
- Lines: 34
-
-
- >>>>> eric.arnold@sun.com (eric ) said:
-
- Eric> Has anyone already written something that aliases all those special
- Eric> variables (Camel book: "You can say one thing for them -- they're
- Eric> certainly concise."). For example, the first element of the default
- Eric> work variable is:
- [...]
- Eric> This requires something like:
- Eric> *WORK = *_;
- [...]
-
- BE CAREFUL! This leads to seg-faults under 4.035!
-
- Specifically, this kind of code was causing problems for me:
-
- sub foo
- {
- local(*_);
- }
-
- But, you may be causing the same problem by taking the highly magical
- @_ and making a "mere mortal variable" reference it.
-
- I'm not sure that what you propose will be problematic, but seeing a
- "*" before an "_" causes a knee-jerk reaction in me, now.
-
-
- -AJS
- --
- --------
- Disclaimer: I am solely responsible for the content of this message.
- The views expressed here may not be the views of I-Kinetics, Fidelity,
- any of the Fidelity-owned corporations or my mother.
-