- or download this
#!/usr/bin/perl -w
...
getopts('x:o:d:m:', \%switches);
print Dumper \%switches;
- or download this
$ ./test.pl -o outputfile -x xmlfiles -d disk1 -m memory1
$VAR1 = {
...
'x' => 'xmlfiles',
'o' => 'outputfile'
};
- or download this
#!/usr/bin/perl -w
...
}
print Dumper \%switches;
- or download this
$ ./test.pl -o outputfile -x xmlfiles -d 'disk1 disk2' -m 'memory1 mem
+ory2'
$VAR1 = {
...
'outputfile'
]
};