/usr/share/perl5/Octopussy/Map.pm is in octopussy 1.0.6-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | # $HeadURL$
# $Revision: 354 $
# $Date: 2010-05-20 17:20:14 +0100 (Thu, 20 May 2010) $
# $Author: sebthebert $
=head1 NAME
Octopussy::Map - Octopussy Map module
=cut
package Octopussy::Map;
use strict;
use warnings;
use Readonly;
use AAT::XML;
use Octopussy::FS;
Readonly my $DIR_MAP => 'maps';
my $dir_maps = undef;
=head1 FUNCTIONS
=head2 List()
Get list of Maps
=cut
sub List
{
$dir_maps ||= Octopussy::FS::Directory($DIR_MAP);
return (AAT::XML::Name_List($dir_maps));
}
=head2 Filename($map)
Get the XML filename for the Map '$map'
=cut
sub Filename
{
my $map = shift;
$dir_maps ||= Octopussy::FS::Directory($DIR_MAP);
return (AAT::XML::Filename($dir_maps, $map));
}
=head2 Configuration($map)
Get the configuration for the Map '$map'
=cut
sub Configuration
{
my $map = shift;
return (AAT::XML::Read(Filename($map)));
}
1;
=head1 AUTHOR
Sebastien Thebert <octo.devel@gmail.com>
=cut
|