Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: array help

by batkins (Chaplain)
on Dec 14, 2002 at 04:39 UTC ( #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? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-08-13 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?