spurperl has asked for the wisdom of the Perl Monks concerning the following question:
The above inits @bytes with 25 copies of "30".my @bytes = split(/ /, "30 " x 25);
Any other ideas ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: better way to init an array ?
by sauoq (Abbot) on Jun 04, 2003 at 07:13 UTC | |
|
Re: better way to init an array ?
by msemtd (Scribe) on Jun 04, 2003 at 08:03 UTC | |
|
Re: better way to init an array ?
by Skeeve (Parson) on Jun 04, 2003 at 08:10 UTC | |
|
Re: better way to init an array ?
by leriksen (Curate) on Jun 04, 2003 at 07:36 UTC | |
by Skeeve (Parson) on Jun 04, 2003 at 08:02 UTC | |
|
Re: better way to init an array ?
by Chady (Priest) on Jun 04, 2003 at 09:37 UTC | |
|
Re: better way to init an array ?
by DrHyde (Prior) on Jun 04, 2003 at 10:37 UTC |