Slackware::Slackget::MediaList - A container of Slackware::Slackget::Media object
This class is used by slack-get to represent a list of medias store in the medias.xml file.
use Slackware::Slackget::MediaList; my $list = Slackware::Slackget::MediaList->new(); ...
Please read the Slackware::Slackget::List documentation for more informations on the list constructor.
This class inheritate from Slackware::Slackget::List, so have a look to this class for a complete list of methods.
Create an index on the MediaList. This index don't take many memory but speed a lot search, especially when you already have the media shortname !
The index is build with the media shortname.
Return a media, as well as Get() do but use the index to return it quickly. You must provide a media shortname to this method.
my $media = $list->get_indexed('slackware') ;
Please report any bugs or feature requests to
bug-Slackware-Slackget@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Slackware-Slackget. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
Thanks to Bertrand Dupuis (yes my brother) for his contribution to the documentation.
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.