Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 (Parson) 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 about the Monastery: (7)
As of 2014-08-28 01:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (255 votes), past polls