Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: loop problem

by rizzo (Curate)
on Jun 12, 2018 at 22:27 UTC ( [id://1216510]=note: print w/replies, xml ) Need Help??


in reply to loop problem

Another example using a loop:

#!/usr/bin/env perl use strict; use warnings; use feature "say"; my $radius; for(;;) { say "Enter radius:"; $radius = <stdin>; last if $radius >= 0 ; say "error : radius must be >= 0"; } say "circumference: ", 2*3.14*$radius;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-29 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found