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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/