sean finney on 31 Oct 2003 17:58:01 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] fun with perl: eval{} and exceptions


On Fri, Oct 31, 2003 at 05:49:40PM -0500, sean finney wrote:
> ...
> eval { $cmd_pid=open3(\*IN, \*OUT, \*ERR, @cmd); };
> if($@ =~ /exec/){
> 	print "\@ is $@\n";
> 	$cmd_errstr = $@;
> 	$cmd_retval = "-1";
> 	die;
> };
> ...

oh, i forgot:  the duplicates happen if you take out the call to die(),
but not if you leave it in, which is why i'm thinking this is some 
wierdness involved with a fork().


	sean

Attachment: signature.asc
Description: Digital signature