Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 (Chancellor)
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

Replies are listed 'Best First'.
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?
[Corion]: No. Back when I toyed with the idea, I found that writing the loop explicitly was usually less code than passing the configuration+ callback to the retrier...
erix just did a 12 km-run. Slow, but unstoppable!

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-05-24 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?