in reply to Reference on calling to a function

How about:
&myfunc([$var]);

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
F--F--F--F--F--F--F--F--
(the triplet paradiddle)

Replies are listed 'Best First'.
(ar0n) Re: (jeffa) Re: Reference on calling to a function
by ar0n (Priest) on Dec 02, 2001 at 23:10 UTC
    And what that does is create an anonymous array from the list between the brackets and return a reference to it. So:
    my @array = qw/1 2 3 4/; myfunc( \@array );
    and
    myfunc( [ qw/1 2 3 4/ ] );
    are functionally equivalent.

    [ ar0n -- want job (boston) ]