in reply to Optional parameter before reference
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Optional parameter before reference (!proto)
by Neutron Jack (Pilgrim) on Jul 23, 2004 at 19:26 UTC | |
by tye (Sage) on Jul 23, 2004 at 22:21 UTC |