sub foo { while (my ($var, $val) = splice @_, 0, 2) { print "$var => $val\n"; } }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
In reply to Re: Getting pair of values from an array
by japhy
in thread Getting pair of values from an array
by vladb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |