User input in perl - Issue with running script in KomodoEdit
Posted
by golwalkar.rohan
on Stack Overflow
See other posts from Stack Overflow
or by golwalkar.rohan
Published on 2010-04-23T06:02:22Z
Indexed on
2010/04/23
6:03 UTC
Read the original article
Hit count: 446
i wrote this tiny code on gedit and ran it :-
#/usr/bin/perl
print "Enter the radius of circle: \n";
$radius = <>;
chomp $radius;
print "radius is: $radius\n";
$circumference = (2*3.141592654) * $radius;
print "Circumference of circle with radius : $radius = $circumference\n";
Runs fine using command line.Ran the same code on Komodo Edit: facing an issue i expect first line as output as :- Enter the radius of circle: whearas it waits on the screen i.e waiting for an input and after that runs everything in sequence -- can someone tell me why it runs fine with command line but not Komodo?
© Stack Overflow or respective owner