Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Building an array, "stripes on a wall"

by wind (Priest)
on Jun 12, 2011 at 03:38 UTC ( #909279=note: print w/replies, xml ) Need Help??


in reply to Building an array, "stripes on a wall"

my $wall_height = 50; my $stripe = 11; my @stripe = map {$_ * $stripe} (1..int($wall_height/$stripe)); print "@stripe"; =prints 11 22 33 44 =cut

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://909279]
help
Chatterbox?
[LanX]: oh
[LanX]: but do you have a car?
[TCLion]: Ok I have used SoPW, any feedback would be appreciated
[Eily]: yes, but if you have to borrow it please don't leave any parselmouth stains on it!

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2017-03-23 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (292 votes). Check out past polls.