RE: Getopt::Std producing unexpected results

2006-12-19 Thread RICHARD FERNANDEZ
> Getopt::Std only works with single hyphen switches, the only > exceptions being '--', '--help' and '--version'. > > perldoc Getopt::Std > > > Getopt::Std also processes swithes in clusters so "-abcd > filename" is the same as "-a -b -c -d filename". > > > With your command line: > > ./

Re: Getopt::Std producing unexpected results

2006-12-18 Thread John W. Krahn
RICHARD FERNANDEZ wrote: > Hi Folks, Hello, > I've written a little mytest.pl using Getopt::Std: > > > #!/usr/bin/perl > use warnings; > use strict; > use Getopt::Std; > > getopt('hl'); > our ($opt_h, $opt_l); > > my $hostname = $opt_h ? $opt_h : undef; > my $file = $opt_l ? $opt_l :

Getopt::Std producing unexpected results

2006-12-18 Thread RICHARD FERNANDEZ
Hi Folks, I've written a little mytest.pl using Getopt::Std: #!/usr/bin/perl use warnings; use strict; use Getopt::Std; getopt('hl'); our ($opt_h, $opt_l); my $hostname = $opt_h ? $opt_h : undef; my $file = $opt_l ? $opt_l : undef; my @volgroups = @ARGV; print "hostname = $hostname