cgi - New Line Character in Perl script -


sorry novice question, new line character in perl script doesn't work. is, \n , \t in script below doesn't work @ all, , displays "hello perl! hello cgi!" in 1 line. usually, cause of phenomenon? please let me know if knows it. thank much.

#!/usr/bin/perl  print "content-type: text/html; charset=utf-8\n\n";  print "hello perl!\n"; print "hello \t cgi!"; 

\n , \t doesn't show in html expect. can use plain text check these chars in output,

#!/usr/bin/perl  print "content-type: text/plain; charset=utf-8\n\n";  print "hello perl!\n"; print "hello \t cgi!"; 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -