source: trunk/tp-perl/getoptlong.pl @ 340

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