> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of DZ-Jay > Sent: Thursday, January 05, 2006 11:44 AM > To: Hicks, Robert > Cc: perl-win32-users@listserv.ActiveState.com > Subject: Re: Hello! Help me please! > > 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. >
I think you can also rewrite the heredoc as such (with a 4 space indentation): print <<" EOF"; content of this $url is: $content EOF I've used this for some things in the past. hth, rmd _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs