byoungvt has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monkeys (hmmm..),

I understand I am aimlessly walking over the end of my string(desired),
but what is this "Use of uninitialized value in concatenation (.)" bit ???
Is substr returning a null and that is flagged??? I am using strict.....

local_hash,local_string and position are all defined/inited w/ my prior to this...

my $temp="";
my $final_string="";
while($temp=substr($local_string,$position,3))
{
$final_string.=$local_hash{$temp};
$position=$position + 3;
}

return $final_string;
}


Use of uninitialized value in concatenation (.) or string at ./stricttrans.pl
line 321, <STDIN> line 4. substr outside of string at ./stricttrans.pl line 319, <STDIN> line 4.

Replies are listed 'Best First'.
Re: Me Blind Monkey
by byoungvt (Initiate) on Mar 16, 2002 at 16:44 UTC
    Me Silly Blind Monkey,

    just needed to test for length....
    Sorry jumped the gun on post...