madM has asked for the wisdom of the Perl Monks concerning the following question:
##!/usr/bin/perl use strict; use warnings; use Data::Dumper; use Getopt::Long; my @array; GetOptions ( "prueba2=s" => \@array, ) or die "not working: $!\n"; print "@array\n"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parsing multiple values with getopt::long
by toolic (Bishop) on Apr 27, 2014 at 17:28 UTC | |
|
Re: parsing multiple values with getopt::long
by NetWallah (Canon) on Apr 27, 2014 at 17:28 UTC | |
|
Re: parsing multiple values with getopt::long
by RichardK (Parson) on Apr 27, 2014 at 17:32 UTC | |
|
Re: parsing multiple values with getopt::long
by karlgoethebier (Abbot) on Apr 28, 2014 at 11:52 UTC |