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?
In reply to Why 'die LIST'? by scott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |