G
Gao Chao
I don't know how to write a function with arguments and return values
that are not scalars. I have learn to write something like
sub foo {
my $arg1 = shift;
my $arg2 = shift;
return $bar;
}
but I cannot pass lists or file handles like that. Can somebody
explain me how to pass lists and file handles as arguments and return
values of a function?
Thanks!
GC
that are not scalars. I have learn to write something like
sub foo {
my $arg1 = shift;
my $arg2 = shift;
return $bar;
}
but I cannot pass lists or file handles like that. Can somebody
explain me how to pass lists and file handles as arguments and return
values of a function?
Thanks!
GC