Path: utzoo!attcan!uunet!inpnms!logan From: logan@rockville.dg.com (James L. Logan) Newsgroups: comp.lang.perl Subject: Re: Why does die with no args exit in eval? Message-ID: <603@inpnms.ROCKVILLE.DG.COM> Date: 3 Jul 90 22:40:02 GMT References: <438@oha.UUCP> <8537@jpl-devvax.JPL.NASA.GOV> Organization: Data General Telecommunications, Rockville, MD Lines: 28 In article <8537@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: # # Mmm, let's just say the "die" routine was coded by a stupid programmer # before eval even existed, and he didn't anticipate that die should always # be trapped by eval. The programmer has been severely reprimanded and promises # never to do it again. The problem will be fixed in the next patch. If you # give a null argument to die it will now be as if you said I have a question along the same lines: why is it that "die;" by itself does not print anything? When I throw together a quick, one-time hack, I don't need the verbosity of die "$MyName: cannot do whatever: $!"; and I don't want the script to die without saying anything at all. I just want: script died at - line 20 Is there any reason this shouldn't be the default? -Jim -- James Logan UUCP: uunet!inpnms!logan Data General Telecommunications Inet: logan@rockville.dg.com 2098 Gaither Road Phone: (301) 590-3198 Rockville, MD 20850