in reply to Re: XML::Twig usage incomprehension
in thread XML::Twig usage incomprehension
Well, $job->{'att'}->{'attributename'} actually breaks the encapsulation. The proper way would be $job->att( 'attributename'). Which of course begs the question: Have you ever tried perldoc XML::Twig? ;--) (or looking at the XML::Twig Quick Reference?)
I can't really blame you though, I tend to do the same thing: when I start working with a module, I use the debugger to figure out its implementation, and often "forget" to read the API.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XML::Twig usage incomprehension
by Skeeve (Parson) on Apr 03, 2006 at 06:39 UTC | |
by Jerome (Initiate) on Apr 03, 2006 at 07:36 UTC | |
by Skeeve (Parson) on Apr 03, 2006 at 09:07 UTC | |
|
Re^3: XML::Twig usage incomprehension
by Anonymous Monk on Apr 02, 2006 at 13:34 UTC |