- or download this
# my test code
catch { print "unphooey again\n"; } ;
- or download this
try {... some code to try ... } sub { ... some code to catch }
- or download this
sub try (&@) {
my($try,$catch) = @_;
...
} sub {
/phooey/ and print "unphooey\n";
};
- or download this
sub try (&$) {
my($try,$catch) = @_;
eval { &$try };
...
} catch {
/phooey/ and print "unphooey\n";
};