Hello all.
I have subroutine sub1 which outputs an array. I cannot alter that subroutine right now. Subroutine sub2, that needs expanding, uses it's output. The expansion requires that I pass a reference to the array/list output of sub1.
Right now, I am using it like this:
sub2( sub1() ) ;
Iknow that it can be replaced by:
{ # minimal scope for @temp
my @temp = sub1() ;
sub2 ( \@temp ) ;
} # end of local scope
Is there a way of not using 2 lines. instead of one
I.E.
sub2( some_code( sub1() ) )
It's a matter of cooler code, not of true need.