in reply to CAN YOU FIGURE THIS OUT?
Most any perl tutorial will tell you how to do this, but you have to break it down into simple parts.
First you're going to ask for input. Try this example or search perlmonks
Now you're going to check for bad input. Look here under the while and until section
If you have bad input you're going to send something to STDERR. Here's a place that tells you about STDIN STDOUT AND STDERR
If your input is good you're going to print "Fahrenheit Celcius" (as pointed out above Celsius is misspelled). Here's a A Perl Tutorial: Super-Basics it describes how to print out stuff.
Now you're going to iterate. Check out this tutoral
Now "e" should really be back up when you check for bad input. There is a perlmonks node on How to identify a number datatype in a string?
And now voila you've got a script.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CAN YOU FIGURE THIS OUT?
by jimbojones (Friar) on Mar 30, 2005 at 14:36 UTC | |
|
Re^2: CAN YOU FIGURE THIS OUT?
by Errto (Vicar) on Mar 30, 2005 at 15:59 UTC | |
|
Re^2: CAN YOU FIGURE THIS OUT?
by Joost (Canon) on Mar 30, 2005 at 16:08 UTC | |
by fraktalisman (Hermit) on Apr 06, 2005 at 22:34 UTC | |
by Joost (Canon) on Apr 06, 2005 at 22:52 UTC | |
|
Re^2: CAN YOU FIGURE THIS OUT?
by Popcorn Dave (Abbot) on Mar 30, 2005 at 19:47 UTC |