/usr/share/doc/libembperl-perl/examples/forms/Embperl/MyForm/DataSource/netmask.pm is in libembperl-perl 2.5.0-6.
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 | package Embperl::MyForm::DataSource::netmask ;
use strict ;
use base 'Embperl::Form::DataSource' ;
# ---------------------------------------------------------------------------
#
# get_values - returns the values and options
#
sub get_values
{
my ($self, $req, $ctrl) = @_ ;
my $i = 33 ;
my @netmaskvalues;
my @netmaskoptions = map { $i-- ; push @netmaskvalues, $i ; "/$i ($_)" } (
'255.255.255.255',
'255.255.255.254',
'255.255.255.252',
'255.255.255.248',
'255.255.255.240',
'255.255.255.224',
'255.255.255.192',
'255.255.255.128',
'255.255.255.0',
'255.255.254.0',
'255.255.252.0',
'255.255.248.0',
'255.255.240.0',
'255.255.224.0',
'255.255.192.0',
'255.255.128.0',
'255.255.0.0',
'255.254.0.0',
'255.252.0.0',
'255.248.0.0',
'255.240.0.0',
'255.224.0.0',
'255.192.0.0',
'255.128.0.0',
'255.0.0.0',
) ;
return (\@netmaskvalues, \@netmaskoptions) ;
}
1 ;
__END__
|