There is more than one way to do anything.  In fact, there are still more
ways to do this than you've shown.  As I pointed out earlier (in response to
the "Erratic server errors..." thread), which method you choose should
depend on the depth and breadth of your audience.  If it's a room full of
neophytes, or a department with lots of turnover (and always under-trained,
like ours), use the most obvious, explicit method you can.  If it's a group
of experienced developers, then you can be more terse/elegant (hey, you
might even have-what do they call those things, now-Oh, yeah! Standards).
If it's just for you, party down.  I tend to use the heredoc syntax if I'm
writing for others:
  print <<"EndOfText";
  <html><body></body></html
  EndOfText

> -----Original Message-----
> From: David Draley [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 9:22 AM
> To: [EMAIL PROTECTED]
> Subject: perl question
> 
> 
> what is the difference between
> 
> print qq|
> <html><body></body></html>
> |;
> 
> vs. the
> 
> print "<html>\n";
> print "<body>\n";
> print "</body>\n";
> print "</html>\n";
> 
> vs. the
> 
> print <<"EndOfText";
> <html><body></body></html
> EndOfText
> 
> do they all do the same thing? or is it better to use one 
> syntax over the 
> other?
> 
> thanks in advance
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 

Reply via email to