Re: Die without textoutput?



Do you mean that you don't want the line number and file evealed?

Llama said,

If you don't want the line number and file revealed,
make sure that the dying words have a newline on the end.
That is, another way you could use die is in a line like this,
with a trailing newline:

die "Not enough arguments\n" if @ARGV < 2;

If there aren't at least two command-line arguments,
that program will say so and quit.
It won't include the program name and line number.


On 10/28/05, gustav@xxxxxxxxxxxxxx <gustav@xxxxxxxxxxxxxx> wrote:
> 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>
>
>
>
.



Relevant Pages

  • 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)