--- In email@example.com
> print OFH <<EOF;
> addres :
> i am tring to print address from a input file to another file by using
> heredoc. but since my address has "." at the end so i am getting the
> below error msg
> Use of uninitialized value in concatenation (.) or string at add.pl
> line 26, <IFH> line 10.
> now if i move the "." from my input file then it works perfect. i know
> other way to solve this problem like
> my $break = '='x80;
> print $OFH "address :\n$break\n$add[-1]\n$break\n\n";
> but i wanna use heredoc .
> any idea?
Thanks alan and randel , now it's working perfect .
you are right i don't need to remove the "." from the input file.