Write a Perl script called literals.plx that will print the following:
$ perl literals
Today is Mon Mar 12 12:58:04 PDT 2007 (Use localtime())
The name of this PERL SCRIPT is literals.
Hello. The number we will examine is 125.5.
The NUMBER in decimal is 125.
The following number is taking up 20 spaces and is right justified.
| 125|
The number in hex is 7d
The number in octal is 175
The number in scientific notation is 1.255000e+02
The unformatted number is 125.500000
The formatted number is 125.50
My boss just said, "Can't you loan me $12.50 for my lunch?"
I flatly said, "No way!"
Good-bye (Makes a beep sound)
Note: The words PERL SCRIPT and NUMBER are capitalized by using string literal escape sequences.
What command-line option would you use to check the syntax of your script? |