good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: VB "On Error" Equivalent in Perlby erroneousBollock (Curate) |
on Nov 29, 2007 at 01:28 UTC ( [id://653737]=note: print w/replies, xml ) | Need Help?? |
I'm curious about your use of $@ om the second line of the eval. How would $@ be set without causing an exception that would throw control outside the eval? If the die "Cannot ..." ever occurs, wouldn't $@ be empty? Surely $@ is only useful outside the eval? Also, eval {} is a statement and should be followed by a semicolon if further statements are to follow in the current block. Your code doesn't compile. -David
In Section
Seekers of Perl Wisdom
|
|