in reply to Re: Warning counter
in thread Warning counter

Warn takes a list! Heck, die takes a list, too! Has this always been so? All this time I've been using . to concat.

Where did I get the idea that it had to be one string?

Not that it matters a whole lot, but it's just slightly nicer to use commas.

Replies are listed 'Best First'.
Re: Re: Re: Warning counter
by broquaint (Abbot) on Jul 02, 2003 at 15:19 UTC
    Has this always been so?
    Indeed it has. If you look at the top of the warn and die docs you'll see the prototype func LIST meaning it takes a list. Although this isn't terrifically relevant to the output as the list is concatenated into a single string and the same behaviour goes for the arguments to the __WARN__ and __DIE__ signal handlers. So it's really just for your convenience, such is perl's way :)
    HTH

    _________
    broquaint