We don't bite newbies here... much | |
PerlMonks |
Re^2: Force access a Hash ref as Array refby Anonymous Monk |
on Jul 20, 2021 at 14:58 UTC ( [id://11135220]=note: print w/replies, xml ) | Need Help?? |
This appears to change the signature of new() to SomeMod->new( undef, { name => value ... } ). Not to mention that it loses the order of the arguments. OTOH splice @asList, 0, 2 is a reasonable alternative to ( shift @asList, shift @asList ).
In Section
Seekers of Perl Wisdom
|
|