Net::Gnip::FilterStream - represent a list of Gnip Filters
# Create a new stream my $stream = Net::Gnip::FilterStream->new(); # ... or parse from XML my $stream = Net::Gnip::FilterStream->parse($xml); # set the filters $stream->filters(@filters); # get the filters my @filters = $stream->filters; # or use an iterator while (my $filter = $stream->next) { print $filter->name; } $stream->reset; # ... now you can use it again while (my $filter = $stream->next) { print $filter->name; }
Create a new, empty stream
Get or set the filters
To install Net::Gnip, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Gnip
CPAN shell
perl -MCPAN -e shell install Net::Gnip
For more information on module installation, please visit the detailed CPAN module installation guide.