in reply to Ways to add an item into the middle of an array?
#!/usr/bin/perl use warnings; use strict; use Data::Dumper; my @line = qw( foo bar baz etc etc etc ); splice @line, 1, 0, ''; # Insert at position 1, replace 0 elements. print Dumper \@line;
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Ways to add an item into the middle of an array?
by Cody Fendant (Hermit) on Nov 20, 2015 at 04:02 UTC |