in reply to Re: Syntax errors in setting path..
in thread Syntax errors in setting path..

Thanks.Also i would like to know how to I stop on an unknown option given?
use Getopt::Long; #Getting the command-line options my %options = (); GetOptions (\%options,'msm','des=s', 'a=s', 'd=s', 'r=i', 'v=s'); if($options(msm)){....}

Replies are listed 'Best First'.
Re^3: Syntax errors in setting path..
by ikegami (Patriarch) on Mar 12, 2011 at 08:06 UTC
    GetOptions displays an error message and returns false when it encounters an unrecognised option.