Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: array help

by batkins (Chaplain)
on Dec 14, 2002 at 04:39 UTC ( [id://219822]=note: print w/replies, xml ) Need Help??


in reply to array help

if you want to scale each element:

@result = map { print "Enter scaling factor:"; $_ * int(<STDIN>) } @ar +ray;

if you want to scale the whole thing by one factor:

@result = map { $_ * $factor } @array;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found