NAME
slackget10::Server - A to represent a server from the servers.xml file.
VERSION
Version 1.0.0
SYNOPSIS
This class is used by slack-get to represent a server store in the servers.xml file.
use slackget10::Server;
my $server = slackget10::Server->new();
...
CONSTRUCTOR
FUNCTIONS
function1
function2
ACCESSORS
Some accessors for the current object/
host
return the current host :
my $host = $server->host
description
return the description of the server.
my $descr = $server->description ;
url
return the URL of the website for the server.
system("$config->{common}->{'default-browser'} $server->url &");
shortname
Return the shortname of the server. The shortname is the name of the id attribute of the server tag in servers.xml => <server id="the_shortname">
my $id = $server->shortname ;
FORMATTED OUTPUT
Different methods to properly output a server.
to_XML
return the server info as an XML encoded string.
$xml = $server->to_XML();
AUTHOR
DUPUIS Arnaud, <a.dupuis@infinityperl.org>
BUGS
Please report any bugs or feature requests to bug-slackget10-networking@rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=slackget10. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2005 DUPUIS Arnaud, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 27:
Unknown directive: =CONSTRUCTOR