in reply to Re: Scalar and void subroutines
in thread Scalar and void subroutines
sub name { #%% reference argument if it is not a reference my $string = ref $_[0] ? $_[0] : \$_[0]; # processing #%% use return caveat $$string; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Scalar and void subroutines
by ikegami (Patriarch) on Nov 10, 2005 at 23:12 UTC | |
by eff_i_g (Curate) on Nov 10, 2005 at 23:18 UTC |