in reply to A Newcomer can't get the user input!
Funny, it works for me.#!/usr/bin/perl use strict; use warnings; print "What is the radius? "; my $radius = <STDIN>; chomp $radius; my $circum = $radius * 2 * 3.14; print "The circumference of the circle with the radius of $radius is $ +circum\n";
|
|---|