[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Omaha.pm] XML::Twig error handling
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@iinteractive.com
AOL IM: deafferret
Mobile: 1.402.598.7782
Fax: 1.402.691.9496