in reply to Re: Re: Re: What Is Going On Here ?????
in thread What Is Going On Here ?????
#!/usr/bin/perl -w use strict; my @l=qw( a b 3 d ); foreach (@l) { print "$_ = "; foreach (@l) { print "$_ "; } print "\n"; } foreach (@l) { icky(); } sub icky { print "$_ = "; foreach (@l) { print "$_ "; } print "\n"; }
You don't need to local($_) inside a foreach loop.
--
$you = new YOU;
honk() if $you->love(perl)
|
---|