myocom has asked for the wisdom of the Perl Monks concerning the following question:
For some reason I can't wrap my brain around splice today...
Given an array, say @a = ('a','b','c'), I want to insert, say, 'foo' into the third position, ending up with @a being ('a','b','foo','c'), but for some reason, my attempts at deciphering perldoc -f splice have failed me. A little help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A silly splicing question...
by marius (Hermit) on Jan 19, 2001 at 05:11 UTC | |
by redcloud (Parson) on Jan 19, 2001 at 05:14 UTC | |
by myocom (Deacon) on Jan 19, 2001 at 05:20 UTC | |
|
Re: A silly splicing question...
by Maclir (Curate) on Jan 19, 2001 at 05:13 UTC |