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?
In reply to A silly splicing question... by myocom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |