nimdokk has asked for the wisdom of the Perl Monks concerning the following question:
my @list=split (/,/, 'N/A,' x 14);
This is simply what I came up with off the top of my head in about 30 seconds. Are there other ways of accomplishing this? Something that might avoid doing the split.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Auto-filling an array
by Limbic~Region (Chancellor) on Mar 28, 2005 at 18:29 UTC | |
by nimdokk (Vicar) on Mar 28, 2005 at 18:33 UTC | |
by Limbic~Region (Chancellor) on Mar 28, 2005 at 18:36 UTC | |
|
Re: Auto-filling an array
by moot (Chaplain) on Mar 28, 2005 at 18:28 UTC | |
|
Re: Auto-filling an array
by ikegami (Patriarch) on Mar 28, 2005 at 18:48 UTC | |
by tlm (Prior) on Mar 28, 2005 at 23:39 UTC | |
by nimdokk (Vicar) on Mar 28, 2005 at 19:13 UTC | |
|
Re: Auto-filling an array
by legato (Monk) on Mar 28, 2005 at 18:38 UTC |