in reply to Re^2: when is "my" not necessary?
in thread when is "my" not necessary?
#!/usr/bin/perl -w use strict; check(qw(a b c)); sub check { my %hash = ( a => 'here', b => 'present', c => 'me too', ); for (@_) { print "$hash{$_} has a value\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: when is "my" not necessary?
by whillers (Initiate) on Nov 04, 2004 at 19:24 UTC |