dark314 has asked for the wisdom of the Perl Monks concerning the following question:
./hashtest.pl -names Manny output is: names = ARRAY(0x81609ec)#!/user/bin/perl -w use strict; use Getopt::Long; my $key; my $value; my %options; GetOptions ( \%options, 'names:s@', 'address:s@'); while ( ($key, $value) = each %options) { print "$key = $value\n"; }
Janitored by tye: Remove PRE tags
2006-07-21 Retitled by GrandFather, as per Monastery guidelines
Original title: 'sorry if this is a stupid question'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: trouble acessing array result from GetOptions
by GrandFather (Saint) on Jul 21, 2006 at 04:16 UTC | |
by dark314 (Sexton) on Jul 21, 2006 at 04:23 UTC | |
by davido (Cardinal) on Jul 21, 2006 at 04:31 UTC | |
by GrandFather (Saint) on Jul 21, 2006 at 04:26 UTC |