http://www.perlmonks.org?node_id=1040108


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);
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

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 (Monsignor) 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!