Home
|
Forum
|
Development
|
Blog
NOTE: ALL CONTENT WILL BE NOW ACCESSIBLE FROM
Togotutor Main Website (www.togotutor.com)
PerlToHtml
Paste the Perl code below to generate the corresponding HTML
Copy the text from the following textarea and paste where you want to display the generated HTML
#!/usr/bin/perl print "content-type: text/html \n\n"; # Script explains addition operator $numberA = 4; #Variable numberA with assigned value as 4 $numberB = 4; #Variable numberB with assigned value as 4 $addition = $numberA + $numberB; #OR $addition = 4 + 4; print "$addition\n"; exit; #script will exit now
Div Wrapper
Pre Wrapper
#!/usr/bin/perl
print
"content-type: text/html \n\n"
;
# Script explains addition operator
$numberA
= 4;
#Variable numberA with assigned value as 4
$numberB
= 4;
#Variable numberB with assigned value as 4
$addition
=
$numberA
+
$numberB
;
#OR
$addition
= 4 + 4;
print
"
$addition
\n"
;
exit
;
#script will exit now
Code Formatted by ToGoTutor
PerlToHtml Output
#!/usr/bin/perl
print
"content-type: text/html \n\n"
;
# Script explains addition operator
$numberA
= 4;
#Variable numberA with assigned value as 4
$numberB
= 4;
#Variable numberB with assigned value as 4
$addition
=
$numberA
+
$numberB
;
#OR
$addition
= 4 + 4;
print
"
$addition
\n"
;
exit
;
#script will exit now
Code Formatted by ToGoTutor
«
Main
»
Enter your email address:
Delivered by
FeedBurner
1 visitors online