Perl, sub with two lists as arguments
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-05-21T16:57:40Z
Indexed on
2010/05/21
17:00 UTC
Read the original article
Hit count: 166
Is it possible to pass two lists to a sub
in Perl , ex
sub Foo {
my(@list1,@list2) = @_;
}
I know I could make @_
two lists, with each sublist being the desired argument, I'm just wondering if there is a cleaner way
© Stack Overflow or respective owner