Parag Kalra wrote: > use strict; > use warnings;
The above should *always* be present in *every* Perl script, even when you think you are writing a script to test something only once. > use Getopt::Long; > > my ( $name, $passion, $age); > > my $result = GetOptions( > 'name|n=s' => \$name, > 'passion|p=s' => \$passion, > 'age|a=i' => \$age, > ); You should test both the long and short form of the parameters in all combinations. ie. # --name stevieb --age 35 # --name stevieb -a 35 # -n stevieb --age 35 etc. This didn't work out well for me, which is why I had to add the ::Configure line that pulled in 'bundling'. All was well until I added the '=s' and '=i'. > Everytime I post something and I get to learn so much. :) You and me both. Steve -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/