Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Defining Arrays

by ckohl1 (Hermit)
on May 17, 2001 at 16:07 UTC ( [id://81210]=note: print w/replies, xml ) Need Help??


in reply to Defining Arrays

A verbose method:
use strict; my @array; for (my $i = 1.5; $i < 9.4; $i += 0.1){ push(@array,sprintf("%.1f",$i)); } foreach (@array){ print "Value: $_\n"; } exit;



Chris
'You can't get there from here.'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-23 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found