No such thing as a small change | |
PerlMonks |
Re: how to split hash into two arraysby grizzley (Chaplain) |
on Jul 07, 2009 at 11:42 UTC ( [id://777843]=note: print w/replies, xml ) | Need Help?? |
I think you don't need any extra array. Just the sub you already have. If some param is not passed, null will be assigned to $array->[x]:
This means, that in first case $bb equals 'undef' as you want.
In Section
Seekers of Perl Wisdom
|
|