Tags: perl5 Similar Threads
1 2 3
my @list = (); my @sub_list = splice ...; push @list, \@sub_list;
my $sub_list = [splice ...];
perl -MData::Dumper -e 'my @list = qw(1 2 3 4); print Dumper [splice (@list, 0,2)];'
2020-03-22T06:24:22 styx-cc Code: (dl ) my $sub_list = [splice ...];