in reply to Re: number array with space
in thread number array with space
use Modern::Perl; my @array = qw/een twee drie vier vijf zes zeven/; for my $index (keys @array) { say "$index: $array[$index]"; }
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: number array with space
by 2teez (Vicar) on Jun 20, 2013 at 06:21 UTC | |
by MynameisAchint (Novice) on Jun 20, 2013 at 06:51 UTC | |
by davido (Cardinal) on Jun 20, 2013 at 07:00 UTC | |
by 2teez (Vicar) on Jun 20, 2013 at 07:09 UTC | |
by davido (Cardinal) on Jun 20, 2013 at 07:28 UTC | |
by MynameisAchint (Novice) on Jun 20, 2013 at 07:59 UTC | |
by gurpreetsingh13 (Scribe) on Jun 20, 2013 at 09:42 UTC | |
|