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

Re: how can print the variable values

by ccn (Vicar)
on Dec 01, 2008 at 11:28 UTC ( [id://727067]=note: print w/replies, xml ) Need Help??


in reply to how can print the variable values

You should better to use an array

my @KPI = (10, 20, 30, 40, 50); for my $i (0 .. $#KPI){ my $var = $KPI[$i]; print "line"."$var"."\n"; }

Log In?
Username:
Password:

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

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

    No recent polls found