in reply to check parameters
Why not just use Getopt::Long? Sample:
If I remember correctly (can't remember what I had for breakfast and I have the same thing every day) Getopt::Long is part of CORE and therefore you need to load it on your system.#!/usr/bin/perl -w use strict; use Getopt::Long; my $abc = 1; my $bar=1; my $fii=1; my $wee=1; my $result = GetOptions("abc=i" => \$abc, "bar=i" => \$bar, "fii=i" => \$fii, "wee=i" => \$wee ); | etc...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: check parameters
by ag4ve (Monk) on Apr 08, 2013 at 14:22 UTC | |
by blue_cowdawg (Monsignor) on Apr 08, 2013 at 14:49 UTC |