in reply to Re: Yet more Try::Tiny problelms
in thread Yet more Try::Tiny problelms
And, bingo!
#! /usr/bin/perl use feature qw (switch); use Try::Tiny; my $uv; given (17) { when (3) { print "three\n"; }; when (17) { try { print "In try block\n"; die( "Substitute undefined variable $uv\n"); print "Still in try block\n"; } catch { print "We caught $_\n"; }; } }
Output is:
$ ./t4.pl In try block We caught 17
It was indeed an interaction between Try::Tiny and the switch feature. Might not happen in later versions of Perl, according to what I've read, but we're running 5.10, where it does.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Yet more Try::Tiny problelms
by tobyink (Canon) on May 19, 2013 at 17:55 UTC | |
by dd-b (Pilgrim) on May 19, 2013 at 23:08 UTC | |
|
Re^3: Yet more Try::Tiny problelms
by Anonymous Monk on May 19, 2013 at 17:43 UTC | |
by Anonymous Monk on May 19, 2013 at 19:52 UTC |