Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://127084]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2018-06-25 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (127 votes). Check out past polls.

    Notices?