Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How to make script die with "Not enough args" on compilation step if args are passed as a hash ref? See inside

by choroba (Abbot)
on Jun 21, 2013 at 08:20 UTC ( #1040108=note: print w/ replies, xml ) Need Help??


in reply to How to make script die with "Not enough args" on compilation step if args are passed as a hash ref? See inside

What should the compilation step do with a code like this?

my $args = {}; $args->{my_obligatory_arg} = 'present' if .5 < rand 1; my_sub($args);
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: How to make script die with "Not enough args" on compilation step if args are passed as a hash ref? See inside
Download Code
Re^2: How to make script die with "Not enough args" on compilation step if args are passed as a hash ref? See inside
by hdb (Prior) on Jun 21, 2013 at 08:23 UTC

    Schrödinger's cat!

Re^2: How to make script die with "Not enough args" on compilation step if args are passed as a hash ref? See inside
by Doctrin (Beadle) on Jun 21, 2013 at 08:32 UTC
    Oh... It looks like I cannot do what I need... Thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-12-28 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls