Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: User Output

by leriksen (Curate)
on Feb 16, 2005 at 00:31 UTC ( #431392=note: print w/ replies, xml ) Need Help??


in reply to User Output

Prabably because $firstNum is actually the string "7\n", that is, a 7 followed by a newline. You probably got these interactively by reading from a terminal, or you read it as a line from a file, and didnt trim the newline off

Try doing a chomp($firstNum);

And guessing you aren't a native english speaker, it is a line break. A brake is what you use on your car to stop. English is such a pain with these type of things, called homophones (meaning same-sounding). You try these ones that are all pronounced the same

toe tow

bear bare

pour paw poor pore

not knot

...it is better to be approximately right than precisely wrong. - Warren Buffet

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://431392]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2016-07-31 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (269 votes). Check out past polls.