#!/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,
In reply to Re: Ways to add an item into the middle of an array?
by choroba
in thread Ways to add an item into the middle of an array?
by Cody Fendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |