[ create a new paste ] login | about

Link: http://codepad.org/ss4oybi3    [ raw code | output | fork ]

skeletonkey - Perl, pasted on Sep 28:
1
2
3
4
5
@s = qw(1 2 3 4 5 6 7 8 9);
$x = 16;
$i = 4;
splice(@s, $i, 0, $x);
print join(' ', @s) . "\n";


Output:
1
1 2 3 4 16 5 6 7 8 9


Create a new paste based on this one


Comments: