Loading ...
Sorry, an error occurred while loading the content.
 

Re: heredoc "." problem

Expand Messages
  • mostafa_3162
    ... Thanks alan and randel , now it s working perfect . you are right i don t need to remove the . from the input file.
    Message 1 of 6 , Oct 2, 2005
      --- In perl-beginner@yahoogroups.com, "mostafa_3162"
      <mostafa_3162@y...> wrote:
      > print OFH <<EOF;
      > addres :
      > ==================================================
      > $add[-1]
      > ==================================================
      > EOF
      >
      >
      > 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.
    Your message has been successfully submitted and would be delivered to recipients shortly.