El 26/07/2011 12:01, Shlomi Fish escribió:
Another option would be to use eval { ... } and $@ to trap exceptions:http://perl-begin.org/tutorials/perl-for-newbies/part4/#page--exceptions--DIR
Important to remember that "open" won't raise an exception if you are not using the "autodie" pragma, which you can enable with:
use autodie; (http://perldoc.perl.org/autodie.html) Best regards, -- Miquel Ruiz -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
