Sudarshan Raghavan wrote at Fri, 07 Mar 2003 10:53:31 +0530:
>> sub cleanText{
>> my $cleanedText = @_;
>
> This is the problem, assigning an array to a scalar stores the number of
> elements in the array (in this case the number of args to cleanText) in
> the scalar ($cleanedText). Change this to either
> my $cleanedText = $_[0];
> or
> my $cleanedText = shift;
or
my ($cleanedText) = @_;
Cheerio,
Janek
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]