Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 browsing the Monastery: (9)
As of 2015-07-04 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls