in reply to Hidden Secrets of PERL
BTW congratulations. It has been a long time since something was pointed out to me about Perl that truly made me go, Ick! You succeeded.
BTW trading oddities, why do the following two programs print different things?
####### ## A ## ####### use strict; my $foo; $foo = "outside"; for $foo (qw(a b c)) { print_foo(); } sub print_foo { print "$foo\n"; } __END__ ####### ## B ## ####### use strict; our $foo; $foo = "outside"; for $foo (qw(a b c)) { print_foo(); } sub print_foo { print "$foo\n"; } __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hidden Secrets of PERL
by Hue-Bond (Priest) on Oct 11, 2006 at 22:58 UTC | |
by bart (Canon) on Oct 12, 2006 at 11:08 UTC | |
|
Re^2: Hidden Secrets of PERL
by fenLisesi (Priest) on Oct 12, 2006 at 08:49 UTC | |
by Anonymous Monk on Oct 12, 2006 at 10:05 UTC |