palette has asked for the wisdom of the Perl Monks concerning the following question:
I have a method called func1
sub func1{
....
...
return ($a,$b);
}
Now I want a one liner so that I can use the arrayrefs returned from that method
I can do like this
@a=func1($a,$b);
and use \@a any where I required.
But I dont want this instead I want someway to use like \@func1();
Can anyone suggest what shud I do.
sub func1{
....
...
return ($a,$b);
}
Now I want a one liner so that I can use the arrayrefs returned from that method
I can do like this
@a=func1($a,$b);
and use \@a any where I required.
But I dont want this instead I want someway to use like \@func1();
Can anyone suggest what shud I do.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Array refs
by Corion (Patriarch) on May 04, 2007 at 16:17 UTC | |
Re: Array refs
by j1n3l0 (Friar) on May 04, 2007 at 16:34 UTC | |
Re: Array refs
by RL (Monk) on May 04, 2007 at 17:11 UTC |
Back to
Seekers of Perl Wisdom