| Net-Gnip documentation | Contained in the Net-Gnip distribution. |
Net::Gnip::Base - base package for Net::Gnip objects
Return an XML::Parser object
| Net-Gnip documentation | Contained in the Net-Gnip distribution. |
package Net::Gnip::Base; use strict; use XML::LibXML;
my $parser; sub parser { return $parser ||= XML::LibXML->new; } sub _do { my $self = shift; my $what = shift; $self->{$what} = shift if @_; return $self->{$what}; } 1;