Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: User Output

by perlsen (Chaplain)
on Feb 16, 2005 at 11:03 UTC ( [id://431514]=note: print w/replies, xml ) Need Help??


in reply to User Output

If you are reading the inputs thru user by <STDIN> then you should
use chomp command to remove the newline charecter.
then you can see you are output.

chomp($firstNum=<STDIN>); #$firstNum="7"; $secNum="5"; $product="35"; print " The product of the first number:$firstNum and second number:$s +ecNum is:$product\n";

thanks

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-20 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found