T
tamiry
Hi,
I have a function returning a list. I want to pass this list
to another function, by reference.
this works
my @list = GetList();
my $listref = \@list;
ReadList($listref);
but I wish to know if it's possible to do in a single command,
something like
ReadList(\@{GetList()});
unfortunately, it doesn't work.
anyone?
I have a function returning a list. I want to pass this list
to another function, by reference.
this works
my @list = GetList();
my $listref = \@list;
ReadList($listref);
but I wish to know if it's possible to do in a single command,
something like
ReadList(\@{GetList()});
unfortunately, it doesn't work.
anyone?