Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Any last words?

by pike (Monk)
on Nov 23, 2001 at 15:03 UTC ( #127084=note: print w/ replies, xml ) Need Help??


in reply to Any last words?

'die' concatenates its argument like print does. This is so that you can say e.g.

die "Expected ", scalar (@ref), " arguments, got ", scalar (@arr), "\n +";

rather than having to explicitly concatenate the strings:

die "Expected " . scalar (@ref) . " arguments, got " . scalar (@arr) . + "\n";

The downside to this is that the args are obviously also concatenated when you pass the to a handler.

pike


Comment on Re: Any last words?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://127084]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-08-01 00:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls