- or download this
#!/usr/bin/perl -w
use strict;
...
my $foo = 'fUnKy';
lc_and_chop $foo;
print "$foo\n";
- or download this
- lc_and_chop $foo;
+ my $bar = lc_and_chop $foo;
- or download this
sub lc (\$) {
my $ref = shift;
...
return $val if defined wantarray;
$$ref = $val;
}