View Full Version : perl tags for <br> etc
HI,
I know that in perl, the html tag <br> is \n. What is the equivalent for <em>. If I use <em> i get the 500 page :(
I have serached but cannot see :o
I have to say that I find your question confusing.
Sorry.
Your mention of a '500 error' seems to suggest that you are using Perl in a CGI context, which is why I'm confused - to get the effect of <em> </em> you just need to use <em> and </em> as in :
print "<em>This is emphasised text</em>";
Your assertion that <br> in Perl is /n is not correct. <br> is an HTML tag which a browser will interpret as a line break; /n is the end of line character which causes a line feed / carriage return on a console device but which would be completely ignored by a browser (ie if you are using Perl in a CGI context as opposed to as a console / command line invoked script).
The usual reason for including /n characters in CGI Perl scripts is to aid readability of the HTML emitted by the script.
I hope this helps and if I've totally misunderstood your query I apologise.
DMP
NO its probably me who is confused and asked a silly question.:)
I have a perl script which uses ID's. Within the ID for each client, I was wanting to add text, instead of putting in a url that would link to an external htm page. The page would display in an iframe.
When I add text that the script will then output, it was putting up the 500 page. I noticed that if I had accents grave or acute on any letters that the 500 page came up but If I removed them, it worked. I thought (probaly wrongly), that the <br> or <em> in the perl part of the script might be causing the difficulty. I know little about perl, though am trying to learn).
Thats as best as I can describe it. Having said that, I am still linking to the external htm page rather than putting the text in the pl script. It seems to be keeping the cgi tidier anyway so I may stick with it this way.
thanks
bazz
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.