home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / perl / 6939 < prev    next >
Encoding:
Text File  |  1992-11-10  |  965 b   |  23 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!panther!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
  3. From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
  4. Subject: Re: Executing required files
  5. Message-ID: <mcook.721447621@fendahl.dev.cdx.mot.com>
  6. Sender: news@merlin.dev.cdx.mot.com (USENET News System)
  7. Nntp-Posting-Host: fendahl.dev.cdx.mot.com
  8. Organization: Motorola Codex, Canton, Massachusetts
  9. References: <JGD.92Oct21135439@kodiak.acl.lanl.gov> <1992Nov05.052448.29379@spillman.uucp>     <1992Nov5.062131.17033@reed.edu> <JGD.92Nov10153029@kodiak.acl.lanl.gov>
  10. Distribution: comp.lang.perl
  11. Date: Wed, 11 Nov 1992 02:07:01 GMT
  12. Lines: 9
  13.  
  14. jgd@acl.lanl.gov (Jerry G. DeLapp) writes:
  15.  
  16. >I still like the idea of __REQUIRED__ to armor plate me from idiots setting $0
  17. >though. Any chance of this appearing in 5.0?
  18.  
  19. What's wrong with setting $0?  At the risk of declaring myself an idiot, I do
  20. this pretty-much as a matter of course: $0 =~ s%^.*/%%;
  21.  
  22. Michael.
  23.