Audar has asked for the wisdom of the Perl Monks concerning the following question:
Here, of course $delim is undefined and I do see an error in my command line, however its not the error text I am specifying. I get this -sub set_delim { # Add the delimiter to list if it's not already there undef $delim; try { if (! exists $delimiters{$delim}) { $choose_delim_be->insert('end', "$delim"); $delimiters{$delim} = 'unk'; } else { if ($delimiters{$delim} ne 'unk') { $delim = chr($delimiters{$delim}); } } } catch { $msg = "Error occured while loading delimiters : $_"; chomp($msg); print $msg; handleErr ($msg, 1006,0); }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Try::Tiny not returning error
by dsheroh (Monsignor) on Feb 13, 2014 at 08:47 UTC | |
by Audar (Novice) on Feb 13, 2014 at 15:02 UTC | |
|
Re: Try::Tiny not returning error
by tangent (Parson) on Feb 13, 2014 at 04:38 UTC | |
by Audar (Novice) on Feb 13, 2014 at 04:43 UTC | |
by tangent (Parson) on Feb 13, 2014 at 05:01 UTC | |
by Audar (Novice) on Feb 13, 2014 at 14:58 UTC | |
by Audar (Novice) on Feb 13, 2014 at 15:03 UTC |