Re: Die without textoutput?
- From: peng@xxxxxxxxx (J.Peng)
- Date: Fri, 28 Oct 2005 17:27:01 +0800 (CST)
hi,
you can redefined the $SIG{__DIE__} handle to do that.
such as:
$SIG{__DIE__}=\&yourdie;
sub yourdie{
...
die;
}
> Hi!
>
> When die is used, there is message something like:
>
> x doesn't exist as an environment variable
> Died at lsh.pl line 510, <STDIN> line 6.
> Childprocess complete
>
> I just want the current process to die without giving any output to
> screen, something like this:
>
> x doesn't exist as an environment variable
> Childprocess complete
>
> Is there any substitue for the die-command to achieve this?
>
> /G
> @varupiraten.se
>
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
> For additional commands, e-mail: beginners-help@xxxxxxxx
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>
______________________________________
Get your FREE 100MB email today at http://www.wapda.com
.
- Follow-Ups:
- Re: Die without textoutput?
- From: John Doe
- Re: Die without textoutput?
- References:
- Die without textoutput?
- From: gustav
- Die without textoutput?
- Prev by Date: help slurping a file
- Next by Date: Re: Newbie Help (WinXP)
- Previous by thread: Re: Die without textoutput?
- Next by thread: Re: Die without textoutput?
- Index(es):
Relevant Pages
|
|