splict演算子について
splict演算子
use strict; use warnings; my @array = qw(pebbles dino fred barney betty); my @removed = splice @array, 2; print @removed . "\n"; print @array;
以下、出力結果となります。
3
pebblesdino
use strict; use warnings; my @array = qw(pebbles dino fred barney betty); my @removed = splice @array, 2; print @removed . "\n"; print @array;
以下、出力結果となります。
3
pebblesdino