I have this script that i have written in some logging for but i do not want it to log for all option, i have used Getopt::Long 2.11 to allow differnt switches but i only want logging on one type of switch
this is my code but it does not like the ne (not equals)
i do not wnat the logging run if the -p is chosen
if ($OPT-> ne {p}){
# setup logging
open (OUTF, ">> $log") or die "$PROG: cannot oprn log file: $log\n";
chomp(my $date = `/bin/date '+%d/%m/%y %H:%M:%S'`);
printf OUTF "$date : nvrm run from %-3s by %-5s \n", $ENV{HOST}, $ENV{USER};
close OUTF;