scott has asked for the wisdom of the Perl Monks concerning the following question:
I was going through perlfunc alphabetically yesterday (doesn't everyone? :) and I came across the description of die. Much to my surprise it takes a LIST not an EXPR. At first I thought this was a typo but I tested it with
and I do get foobarbaz.die ( 'foo' , 'bar' , 'baz' );
I've never seen anyone give die a list and the examples in perlfunc all use single scalars. Since die just sends it's argument to STDERR, of what use is giving it a LIST. I note also that warn is the same. Is this for people who want to do $SIG{ DIE } stuff, perhaps?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why 'die LIST'?
by suaveant (Parson) on Jul 24, 2001 at 20:52 UTC | |
by John M. Dlugosz (Monsignor) on Jul 25, 2001 at 00:24 UTC | |
|
(ichimunki) Re: Why 'die LIST'?
by ichimunki (Priest) on Jul 24, 2001 at 20:56 UTC | |
|
Re: Why 'die LIST'?
by Hofmator (Curate) on Jul 24, 2001 at 20:55 UTC | |
|
Re: Why 'die LIST'?
by doug (Pilgrim) on Jul 24, 2001 at 23:57 UTC | |
by John M. Dlugosz (Monsignor) on Jul 25, 2001 at 00:22 UTC | |
by rrwo (Friar) on Jul 27, 2001 at 06:23 UTC | |
|
Re: Why 'die LIST'?
by rrwo (Friar) on Jul 27, 2001 at 06:22 UTC |