Re: Die without textoutput?



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


.



Relevant Pages

  • Re: Die without textoutput?
    ... Llama said, ... That is, another way you could use die is in a line like this, ... with a trailing newline: ... > Childprocess complete ...
    (perl.beginners)
  • Die without textoutput?
    ... Childprocess complete ... I just want the current process to die without giving any output to ... Is there any substitue for the die-command to achieve this? ... Prev by Date: ...
    (perl.beginners)
  • Re: Die without textoutput?
    ... > Childprocess complete ... > I just want the current process to die without giving any output to ... Do you have any questions about what's in the documentation? ... It is hard to diagnose code problems without seeing any code. ...
    (perl.beginners)
  • Re: Die without textoutput?
    ... >>>Childprocess complete ... Did you read the documentation for die ... Prev by Date: ...
    (perl.beginners)
  • Re: Die without textoutput?
    ... >> Childprocess complete ... >> I just want the current process to die without giving any output to ... I'd like something like pseduo.. ... Prev by Date: ...
    (perl.beginners)