>foreach (@mail)
>{
> my $str1=$_;
> $str1=$str1 . "@abc.com";
> print "$str1\n";
> 
>}
> 
>But somehow it is not getting concateneted.
> 

Hi,

replace:

$str1=$str1 . "@abc.com";

to:

$str1 .= '@abc.com';

I think that would work.
In your case,"@abc.com" has been parsed by Perl as an array.



--
Jeff Pang
EMAIL: [EMAIL PROTECTED]  AIM: jeffpang

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


Reply via email to