You can achieve your goal thus:
sub undefRef{ my $ref = shift; undef @{ $ref }; }
But why you would do undefRef( \@a ); rather than undef @a; I cannot see.
In reply to Re: passing reference to subroutine
by BrowserUk
in thread passing reference to subroutine
by asthaonard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |