Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!rutgers!att!bu.edu!nntp-read!composer From: composer@chem.bu.edu (Jeff Kellem) Newsgroups: comp.lang.perl Subject: Re: die Message-ID: Date: 27 Jan 91 02:25:38 GMT References: Sender: news@bu.edu.bu.edu Reply-To: composer@chem.bu.edu Organization: Boston University Chemistry Department Lines: 40 In-reply-to: rm55+@andrew.cmu.edu's message of 26 Jan 91 19:12:53 GMT In article rm55+@andrew.cmu.edu (Rudolph T. Maceyko) writes: > Date: 26 Jan 91 19:12:53 GMT > > From the man page: > > die(LIST) [..man page partial quote deleted..] > Well, apparently, lists aren't my best datatype in PERL ;-> because I > can't get die to Do The Right Thing with a list. A string works fine, > so I can just concatenate everything if I wanted to.... However, die > doesn't work as advertised. I suspect that the man page is incorrect, it should probably say die EXPR die (EXPR) die instead of having LIST as its argument. There is a single mention of EXPR as the arg later in the man page under that same section, when mentioning that "If the value of EXPR does not end in a newline, the current script line number and input line number (if any) are also printed, and a newline is supplied." I haven't glanced at that particular code, but I suspect that man page is in error on this case (definitely an easier fix.. ;-). Larry? So, to do what you want.. just do.. die "prog: $$: invalid process\n"; Cheers... -jeff Jeff Kellem Internet: composer@chem.bu.edu