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
Post a Comment