On Thu, Feb 11, 2010 at 2:03 AM, Jay Savage <daggerqu...@gmail.com> wrote: > > $@ is also *guaranteed*--in the words of perlfunc--to be set > correctly. I believe that historically this may not have been the > case: $@ may have only been set on failure and not flushed on success, > but in recent Perls it should be reliable.
I also agree. > I'm also curious under what circumstances you believe > the eval could fail but $@ not be true (i.e., when would you expect > your code to print "unknown"?). > I think Ruud didn't mean eval fail but $@ not be true. If I understand for that correctly, what he tried to explain is, under some cases the $@ is set by other eval {} call, not the current eval {} you followed. Though I don't know if there is the case it will happen... Jeff. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/