News::Pan::Server

Abstraction to a collection of pan server cache files
Download

News::Pan::Server Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Leo Charre
  • Publisher web site:
  • http://search.cpan.org/~leocharre/

News::Pan::Server Tags


News::Pan::Server Description

Abstraction to a collection of pan server cache files News::Pan::Server offers an abstraction to a collection of pan server cache files.There are two ways to set the abs_path of the news server cache, this is where your group files reside. Either through set_asb_path(), which returns boolean, or through argument to constructor. If you set it through argument to constructor, it will throw an exception if this is not a directory.new() my $server = new News::Pan::Server({ abs_path => '/home/myself/.pan/astraweb' }); my $server = new News::Pan::Server; $server->set_asb_path( '/home/myself/.pan/astraweb' ) or warn('not a dir');set_abs_path()set the abs path for this news server cache dir.abs_pathreturns abs patht to server cache dirgroups_subscribed()takes no argument returns array ref list of groups subscribed to (this is by what is read in abs_path files) cached in object instance, returns the names 'alt.binaries.group,etc' etcgroups_subscribed_binaries()returns array ref of groups that are binariesgroup()argument is group name, returns News::Pan::Server::Group object. returns undef and warns on fail Requirements: · Perl


News::Pan::Server Related Software