cgi and server resources

They have: 1,587 posts

Joined: Mar 1999

anybody know which requires more server resources:

using eof to print html on page.cgi

using print to print html on page.cgi

using print to print html onto an html file

thx n advance

------------------
CLICK 4 some tested resources for making money $, hosting, and web promotions.
My Site got hacked, but i'm coming back?

Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?

They have: 568 posts

Joined: Nov 1999

When you say using print to print HTML to an HTML file do you mean Perl would open the file and print the HTML to it?

They have: 1,587 posts

Joined: Mar 1999

yeah, instead of using eof

------------------
CLICK 4 some tested resources for making money $, hosting, and web promotions.
My Site got hacked, but i'm coming back?

Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?

They have: 568 posts

Joined: Nov 1999

Well, then printing the HTML to an html file would definately take up the most resources. using print and EOF are the same thing and will take up the same amount of resources.

Can I suggest using something like this?

code:

print qq~
<html>
<head>
<title>SOmething</title>
</head>

<body>

</body>
</html>
~;
[/code]

print qq~ will print until it see's another ~ then it will stop printing.

So you could use print qq! print qq@ print qq# or whatever you wanted. 

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.