IT.COM

Hello world example in Perl

Spaceship Spaceship
Watch
Impact
6
Code:
#!/usr/bin/perl
print "Content-type: text/htmlnn";

print "Hello Worldn";

exit;


:D
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
haha

PHP:
<?php

echo "hello world!"

?>

i love how much less text it takes =)
 
0
•••
Originally posted by DarkDevil
haha

PHP:
<?php

echo "hello world!"

?>

i love how much less text it takes =)

yepp, but this is the Perl code snippets forum..... :)

And yea no reason to use php or perl to print hello world, except for maybe an example or something.

by the way don't forget about the little ;

The correct way in php woule be more like:

http://www.webdesigntalk.net/showthread.php?s=&threadid=162

:beer:
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back