namishtiwari has asked for the wisdom of the Perl Monks concerning the following question:
I am calling the script as--main(); sub main { $result = GetOptions ("LogDir=s" => \$LogDir, "Summary" => \$Summary, "Indiviual=s" => \$Individual , "Diagnostics=s" => \$Diagnostics, "Prefix=s" => \$Prefix, "All" => \$All, "help" => \$help); usage_help() if($help); usage_help() unless($Prefix); usgage_help() unless($LogDir); if($LogDir) { die "Log dir '$LogDir' doesn't exist" unless -d $LogDir; } $glob_path = "$LogDir/${prefix}*"; @log_paths = glob $glob_path or die "No files found in '$glob_path'"; printf "log files = \n"; print @log_paths; printf "\n"; if($Summary) { process_summaryreport (); } if($Individual) { if($Individual == "ArcotID") { ArcotID_Authentication(@log_paths); } } }
It does not show me any output. I think the problem lies here.C:\Perl Script>perl summaryreport_latest_working.pl --LogDir=. --Prefi +x=arcotweb --Individual=ArcotID
How to modify this part to get the correct output. Please suggest me something to get rid of this problem. Thanks NTif($Individual) { if($Individual == "ArcotID") { ArcotID_Authentication(@log_paths); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: calling problem in script
by Corion (Patriarch) on Jun 30, 2009 at 14:27 UTC | |
|
Re: calling problem in script
by moritz (Cardinal) on Jun 30, 2009 at 14:26 UTC | |
|
Re: calling problem in script
by davorg (Chancellor) on Jun 30, 2009 at 14:26 UTC | |
| |
|
Re: calling problem in script
by kennethk (Abbot) on Jun 30, 2009 at 14:31 UTC | |
|
Re: calling problem in script
by jwkrahn (Abbot) on Jun 30, 2009 at 14:41 UTC | |
| |
|
Re: calling problem in script
by Anonymous Monk on Jun 30, 2009 at 14:27 UTC | |
|
Re: calling problem in script
by ww (Archbishop) on Jun 30, 2009 at 21:16 UTC | |
by Jenda (Abbot) on Jul 06, 2009 at 23:46 UTC |