pass

How to pass two parameters to a sub ?
I know how to read out 1 parameter (with
local ($key) = @_;  ), but how to read out the second parameter ?
oostwijkAsked:
Who is Participating?
 
interiotConnect With a Mentor Commented:
my ($key, $lock) = @_;

    You can do this with any array...

my @a = (3, 4);
my @b = (1, 2, @a, 5);
my ($one, $two, $three, $four, $five) = @b;
0
All Courses

From novice to tech pro — start learning today.