RazorbladeBidet has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use Error qw( :try ); my $var = "Hello"; END { print $var, "\n"; try { print $var, "\n"; } catch Error with { print "Whoa, got an error!\n"; }; }
#!/usr/bin/perl -w use strict; use Error qw( :try ); my $var = "Hello"; END { try { print $var, "\n"; } catch Error with { print "Whoa, got an error!\n"; }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Variables out of scope using END and Error.pm
by dave_the_m (Monsignor) on Feb 17, 2005 at 19:53 UTC | |
by Animator (Hermit) on Feb 17, 2005 at 20:01 UTC | |
by dave_the_m (Monsignor) on Feb 18, 2005 at 02:18 UTC | |
|
Re: Variables out of scope using END and Error.pm
by Animator (Hermit) on Feb 17, 2005 at 19:58 UTC |