hotshot has asked for the wisdom of the Perl Monks concerning the following question:
and a string:@numbers = (4, 5, 6); # not necessarly consecutive
and I would like to get a new array:$str = 'test number X';
Is their a short way of doing that? I tried using map, but I guess I don't familiar with it enough.@newArray = ('test number 4', 'test number 5', 'test number 6');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: map question
by dragonchild (Archbishop) on Mar 19, 2002 at 16:32 UTC | |
|
Re: map question
by RMGir (Prior) on Mar 19, 2002 at 16:32 UTC | |
|
Re: map question (boo)
by boo_radley (Parson) on Mar 19, 2002 at 17:09 UTC | |
|
Re: map question
by broquaint (Abbot) on Mar 19, 2002 at 16:34 UTC | |
by dragonchild (Archbishop) on Mar 19, 2002 at 16:41 UTC | |
by hotshot (Prior) on Mar 19, 2002 at 16:42 UTC | |
|
Re: map question
by tomhukins (Curate) on Mar 19, 2002 at 16:29 UTC | |
by hotshot (Prior) on Mar 19, 2002 at 17:09 UTC | |
|
Re: map question
by jmcnamara (Monsignor) on Mar 19, 2002 at 17:17 UTC |