perl.beginners
[Top] [All Lists]

ARGV array regarding

Subject: ARGV array regarding
From: surrr86@xxxxxxxxx (Suresh Kumar)
Date: Thu, 31 Jul 2008 18:00:06 +0530
Newsgroups: perl.beginners
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.
<Prev in Thread] Current Thread [Next in Thread>