Re: Die without textoutput?
- From: sinopsw@xxxxxxxxx (Hao Chen)
- Date: Fri, 28 Oct 2005 18:45:39 +0800
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>
>
>
>
.
- References:
- Die without textoutput?
- From: gustav
- Die without textoutput?
- Prev by Date: about man page
- Next by Date: Re: about running unix command in perl script
- Previous by thread: Re: about man page
- Next by thread: help slurping a file
- Index(es):
Relevant Pages
|