File: zero.pl

package info (click to toggle)
libgetopt-simple-perl 1.52-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 124 kB
  • ctags: 12
  • sloc: perl: 217; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use lib './lib';
use strict;
use warnings;

use Getopt::Simple;

# -----------------

my($opt) = Getopt::Simple -> new();

$opt->getOptions(
{
    env   => '-',
    purge =>
    {
        type    => "=i",
        default => 1,
        order   => 1,
    }
},
"$0 [options]", 1, 1);

print $$opt{'switch'}{'purge'};