Path: utzoo!attcan!uunet!jarthur!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Why does die with no args exit in eval? Message-ID: <8592@jpl-devvax.JPL.NASA.GOV> Date: 4 Jul 90 00:05:42 GMT References: <438@oha.UUCP> <8537@jpl-devvax.JPL.NASA.GOV> <603@inpnms.ROCKVILLE.DG.COM> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 26 In article <603@inpnms.ROCKVILLE.DG.COM> logan@rockville.dg.com (James L. Logan) writes: : 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? That's more or less what I just said was going to happen. Larry