bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
but this ones does not:use strict; use Data::Dumper; my $name = "baggins"; &uppercase( $name ); print Dumper( $name ); sub uppercase { for (@_) { tr/a-z/A-Z/; } }
Is it the $_ in the uc($_)? I'm sure it's insanely simple, but I'm not seeing it. Thanks!use strict; use Data::Dumper; my $name = "baggins"; &uppercase( $name ); print Dumper( $name ); sub uppercase { for (@_) { uc($_); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to handle passed data in subroutines
by Roger (Parson) on Nov 20, 2003 at 03:22 UTC | |
|
Re: How to handle passed data in subroutines
by !1 (Hermit) on Nov 20, 2003 at 03:27 UTC | |
|
Re: How to handle passed data in subroutines
by pg (Canon) on Nov 20, 2003 at 03:23 UTC | |
by tilly (Archbishop) on Nov 20, 2003 at 05:30 UTC | |
|
Re: How to handle passed data in subroutines
by bradcathey (Prior) on Nov 20, 2003 at 13:13 UTC |