Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2016-12-11 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (168 votes). Check out past polls.