Re: ARGV array regarding
- From: shawnhcorey@xxxxxxxx (Mr. Shawn H. Corey)
- Date: Thu, 31 Jul 2008 10:57:11 -0400
On Thu, 2008-07-31 at 18:00 +0530, suresh kumar wrote:
Hi,
This is my part of the script,
if (($#ARGV == 1) && ($ARGV[0] eq "-f")) {
..........
............
if ($ARGV[0] ne "-f" ) {
......................
....................
if i run my script i am seeing this kind of warnings.
Use of uninitialized value in string eq at ./lineCount line 30.
Use of uninitialized value in string ne at ./lineCount line 69.
How can i initialize ARGV array?
can anyone help me in this issue.
If you're looking to handle command-line options, you should use the
standard packages. See `perldoc Getopt::Std` and `perldoc Getopt::Long`.
--
Just my 0.00000002 million dollars worth,
Shawn
"Where there's duct tape, there's hope."
"Perl is the duct tape of the Internet."
Hassan Schroeder, Sun's first webmaster
.
- References:
- ARGV array regarding
- From: Suresh Kumar
- ARGV array regarding
- Prev by Date: Re: ARGV array regarding
- Next by Date: Re: How do I use HTML::Stripper without lwp?
- Previous by thread: Re: ARGV array regarding
- Index(es):
Relevant Pages
|