[Omaha.pm] XML::Twig error handling

Jay Hannah jay.hannah at iinteractive.com
Mon Oct 22 12:19:02 PDT 2012


Sean / Justin,

My XML::Twig skills have atrophied. 

How are you trapping when nodes may or may not exist?

Try::Tiny and stuff like this?

      my $connection; 
      try { $connection = $s->first_child('connection')->text; };

Or a ton of && statements? or...?

Thanks,

Jay Hannah
Project Lead / Programmer
http://www.iinteractive.com
Email: jay.hannah at iinteractive.com
AOL IM: deafferret
Mobile: 1.402.598.7782
Fax: 1.402.691.9496







More information about the Omaha-pm mailing list