Re: 'warn' produces additional output
From: Arndt Jonasson (do-not-use_at_invalid.net)
Date: 02/25/05
- Next message: Paul Marquess: "Re: BerkeleyDB locking question"
- Previous message: jl_post_at_hotmail.com: "Re: Read from keyboard"
- In reply to: Martin Kissner: "'warn' produces additional output"
- Next in thread: Martin Kissner: "Re: 'warn' produces additional output"
- Reply: Martin Kissner: "Re: 'warn' produces additional output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Feb 2005 15:39:22 +0100
Martin Kissner <news@chaos-net.de> writes:
> The following script produces a few lines of output on STDERR.
> Some of the lines are supposed to be red (works at least on zsh, bash
> and tcsh).
>
> First question:
> Why is there a trailing line after "Output line two" with a leading
> space character?
> " at ./warn.pl line 9."
> The only difference between the two warn statements is the position of
> the "\n".
>
> Second question:
> What are the general prerequisites which cause 'warn' to produce this
> additional output?
"perldoc -f warn" says:
Produces a message on STDERR just like "die", but
doesn't exit or throw an exception.
And "perldoc -f die" says:
If the last element of LIST does not end in a
newline, the current script line number and input
line number (if any) are also printed, and a newline
is supplied.
Does this explain what you see?
- Next message: Paul Marquess: "Re: BerkeleyDB locking question"
- Previous message: jl_post_at_hotmail.com: "Re: Read from keyboard"
- In reply to: Martin Kissner: "'warn' produces additional output"
- Next in thread: Martin Kissner: "Re: 'warn' produces additional output"
- Reply: Martin Kissner: "Re: 'warn' produces additional output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|