sub verify { my $ref= \$_[-1]; pop(@_); my( $string )= @_; # ... }
Lots of variations on that theme are possible. Avoiding subroutine prototypes is usually best with Perl.
- tye
In reply to Re: Optional parameter before reference (!proto)
by tye
in thread Optional parameter before reference
by Neutron Jack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |