iphone has asked for the wisdom of the Perl Monks concerning the following question:
Hi, When the user runs the script "script.pl"from command line as below,I am running an exe findfile.exe in that script based on the command line options.How do I process the command line and run findfile.exe based on the correct options(even though the options are interchanged,the script should pick the right options.Can someone pls help? >>perl script.pl -f file.c -d c:\ >>perl script.pl -d C:\ -f file.c
#!/usr/bin/perl -w use strict; use warnings; findfile.exe <opt_f> <opt_d>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Processing command line based on user input
by roboticus (Chancellor) on Nov 20, 2010 at 04:51 UTC | |
|
Re: Processing command line based on user input
by PeterPeiGuo (Hermit) on Nov 20, 2010 at 04:32 UTC | |
by iphone (Beadle) on Nov 20, 2010 at 05:01 UTC | |
|
Re: Processing command line based on user input
by viveksnv (Sexton) on Nov 20, 2010 at 04:53 UTC | |
by afoken (Chancellor) on Nov 20, 2010 at 22:12 UTC |