#!/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"; } }
In reply to Re^3: when is "my" not necessary?
by Joost
in thread when is "my" not necessary?
by argv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |