print-literals.pl to HTML.

index -|- end

Generated: Sun Aug 21 11:11:24 2011 from print-literals.pl 2010/09/03 557.

#! /usr/bin/perl
# Program to illustrate printing literals
print "The price is $100.\n";
print "The price is \$100.\n";
print "The price is \$",100, ".\n";
print "The binary number is converted to: ",0b10001,".\n";
print "The octal number is converted to: ",0777,".\n";
print "The hexadecimal number is converted to: ",0xAbcF,".\n";
print "The unformatted number is ", 14.56, ".\n";
print "***\tIn double quotes\t***\n"; # backslash interpretation
print '%%%\t\tIn single quotes\t\t%%%\n'; # All characters are
# printed as literals
print "\n"

index -|- top

checked by tidy  Valid HTML 4.01 Transitional