Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

the +++ print <<EOF +++ command in perl using CGI thingies

Status
Not open for further replies.

mckarl

Programmer
May 5, 1999
147
GB
Hi all, <br><br>I use the commands:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-+-+-+-+-+-+-+-<br><br>print &quot;Content type: html/text\n\n&quot;;<br>print &lt;&lt;EOF<br>&lt;HTML&gt;<br>&lt;TITLE&gt;Whatever&lt;/TITLE&gt;<br>&lt;BODY&gt;<br>&nbsp;&nbsp;&lt;P&gt; Whatever goes here &lt;/p&gt;<br>&lt;/BODY&gt;<br>&lt;/HTML&gt;<br><br>EOF<br><br>$the_result = system(../whatever);<br><br>...<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-+-+-+-+-+-+-+-<br><br>-- no, it's getting to the $variable, and it's killing up an error, is this meaning that EOF means to end of file, and that noting functional can appear after EOF?<br><br>-- I GREATELY apprieciate any help anyone can offer... <br><br>--- Karl .B.<br> <p>Karl Butterworth<br><a href=mailto:karl_butterworth@ordina.co.uk>karl_butterworth@ordina.co.uk</a><br><a href= > </a><br><i>I'm slim shadey, yes i'm the real shadey, all you other slim shadeys are just imitating; so wont the real slim shadey please stand up, please stand up, please stand up!</i>
 
'EOF' is simply a marker to start and stop the print statement. You can replace 'EOF' with&nbsp;&nbsp;'EndPrint' or with anything (within reason) that makes sense to you.&nbsp;&nbsp;Often, you will see it written like.....<br><br><FONT FACE=monospace>print &lt;&lt;EndPrint<br>the stuff you want to print<br>EndPrint<br></font><br><br><br><br>I do find it a little curious that someone would use EOF as the print statement marker when it already has the End-of-File meaing mentally associated with it. <p> <br><a href=mailto: > </a><br><a href= > </a><br> keep the rudder amid ship and beware the odd typo
 
Thanks Boaterdude,<br><br>Yeah i know what you mean, thought it was a marker though within perl, for that type of print. Ok then, i'll see if i can get my proggie to work then... <br><br><br>-=-=-=-=-&nbsp;&nbsp;<br>Be seeyin ya soown!<br>=-=-==-=-=-==-=-=-==-=-=-<br><br>Karl <p>Karl Butterworth<br><a href=mailto:karl_butterworth@ordina.co.uk>karl_butterworth@ordina.co.uk</a><br><a href= > </a><br><i>I'm slim shadey, yes i'm the real shadey, all you other slim shadeys are just imitating; so wont the real slim shadey please stand up, please stand up, please stand up!</i>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top