home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!convex!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: Executing required files
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Nov11.145949.6745@news.eng.convex.com>
- Date: Wed, 11 Nov 1992 14:59:49 GMT
- Distribution: comp.lang.perl
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- References: <1992Nov5.062131.17033@reed.edu>> <JGD.92Nov10153029@kodiak.acl.lanl.gov> <mcook.721447621@fendahl.dev.cdx.mot.com>
- Nntp-Posting-Host: pixel.convex.com
- Organization: Convex Computer Corporation, Colorado Springs, CO
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 21
-
- From the keyboard of mcook@fendahl.dev.cdx.mot.com (Michael Cook):
- :jgd@acl.lanl.gov (Jerry G. DeLapp) writes:
- :
- :>I still like the idea of __REQUIRED__ to armor plate me from idiots setting $0
- :>though. Any chance of this appearing in 5.0?
- :
- :What's wrong with setting $0? At the risk of declaring myself an idiot, I do
- :this pretty-much as a matter of course: $0 =~ s%^.*/%%;
-
- You lose your visible arguments to ps. Better this way:
-
- $0 =~ s%^.*/%%; # clobbered visible @ARGV
- $0 .= " @ARGV"; # restore
-
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
- Some are born to perl, some achieve perl, and some have perl
- thrust upon them.
-