in reply to Variables out of scope using END and Error.pm
$ cat /tmp/p #!/usr/bin/perl -w my $x = 1; END { sub { print "x=$x\n" }->(); } $ perl586 /tmp/p Use of uninitialized value in concatenation (.) or string at /tmp/p li +ne 5. x= $ perl590 /tmp/p x=1 $
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Variables out of scope using END and Error.pm
by Animator (Hermit) on Feb 17, 2005 at 20:01 UTC | |
by dave_the_m (Monsignor) on Feb 18, 2005 at 02:18 UTC |