Doctrin has asked for the wisdom of the Perl Monks concerning the following question:
script would die on COMPILATION step. How can I make a completely same thing with arguements passed as a hash ref? Like that:sub MySub($$;$) { my ($a,$b,$c) = @_; print "$a $b $c"; return 1; } ... MySub(1);
Thanks in advancesub MySub($args) { ... #and if I do not pass, say, $args->{my_obligatory_arg} whole thing die +s on COMPILATION step }
|
|---|