Is it possible that the array vob_list is empty? It seem that  1 is
added  to the number of elements in the array. So  the loop at least 1
time.

>>> "Sayed, Irfan (Irfan)" <[EMAIL PROTECTED]> 2/6/2007 11:53:24 AM >>>
Hi All,
 
Following is my code....
 
# /usr/bin/perl
use strict;
use warnings;
 
my $CT = "/usr/atria/bin/cleartool";
my @vob_list = `$CT lsvob -s`;
my $ele;
my @vob_list1;
my $i;
my $size;
$size = $#vob_list+1;
 
for ($i=0;$i<=$size;$i++)
{
 $ele = $vob_list[$i];
 $ele =~ s/$ele/"$ele",/g;
 $vob_list1[$i] = $ele;
}
 
I am getting following error.
 
Use of uninitialized value in regexp compilation at apply_trigger1.pl
line 16.
Use of uninitialized value in substitution (s///) at apply_trigger1.pl
line 16.
Use of uninitialized value in substitution (s///) at apply_trigger1.pl
line 16.

can anybody please help.
 
Regards
Irfan.
 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to