Hi,

use strict;
use warnings;
use Getopt::Long;

my %hash;
GetOptions(\%hash, "first=s", "second|s=s", "third=i");

print $hash{first}, $hash{second}, $hash{third}, "\n";

--
Octavian

----- Original Message ----- From: "Unknown User" <knowsuperunkn...@gmail.com>
To: "beginners" <beginners@perl.org>
Sent: Tuesday, July 06, 2010 7:49 AM
Subject: getopt::long


um,

I am pretty sure getopt::long keeps all input data in a hash, does
anybody know whether i can use that hash itself in my code, and if so,
how?

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5254 (20100706) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5254 (20100706) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to