Hicks, Robert wrote:
I believe that if you inline a heredoc like that the contents of the heredoc 
have to be left aligned all the way to the left margin.

Not the *contents* of the heredoc, but the closing label must be the first thing on its line. This should be fine:

    if(!(m~^http://~))
    {
      $url='http://127.0.0.1/'.$_;
      $content=getContent($url);
      print<<"EOF";
      content of this $url is:
      $content
EOF
    }


If that is too ugly for you (it is for me!), then perhaps you should use a standard double-quoted string:

        print "\ncontent of this $url is:\n$content";

        dZ.

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to