Re: Not walking together with Getopt Module
On Tue, Aug 23, 2011 at 5:53 PM, Emeka wrote: > Hello All, > > Why shouldn't this work? *snip* > $result = GetOptions("age=i" => $age); You should always try to explain the results you expect and what you are getting instead. I had a hard time understanding what your problem was just from reading
Not walking together with Getopt Module
Hello All, Why shouldn't this work? use Getopt::Long; #$debug = 0; $result = GetOptions("age=i" => $age); if ($age) {print "Input age is $age years"; } Emeka -- *Satajanus Nig. Ltd *