John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
seems to be the right idea, but is going a bit out of the way. Is there a nicer way to do it?@newlist= map {$_} (@{$self->{oldlist}});
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best way to copy an array?
by jweed (Chaplain) on Feb 22, 2004 at 06:22 UTC | |
|
•Re: Best way to copy an array?
by merlyn (Sage) on Feb 22, 2004 at 12:07 UTC | |
|
Re: Best way to copy an array?
by BrowserUk (Patriarch) on Feb 22, 2004 at 12:27 UTC | |
|
Re: Best way to copy an array?
by NetWallah (Canon) on Feb 22, 2004 at 07:03 UTC | |
|
Re: Best way to copy an array?
by blokhead (Monsignor) on Feb 22, 2004 at 06:56 UTC | |
by John M. Dlugosz (Monsignor) on Feb 23, 2004 at 04:37 UTC | |
|
Re: Best way to copy an array?
by flyingmoose (Priest) on Feb 22, 2004 at 23:50 UTC |