source:
trunk/tp-perl/getoptlong.pl
@
340
Last change on this file since 340 was 268, checked in by nanardon, 13 years ago | |
---|---|
File size: 192 bytes |
Line | |
---|---|
1 | #!/bin/env perl -W |
2 | |
3 | use strict; |
4 | use Getopt::Long; |
5 | |
6 | GetOptions( |
7 | t => \my $test, |
8 | 'p=s' => \my $pref, |
9 | ) or die 'wrong option'; |
10 | |
11 | $pref ||= ''; |
12 | |
13 | if (!$test) { |
14 | print $pref . "\n"; |
15 | } |
Note: See TracBrowser
for help on using the repository browser.