Perl (Scripting) - Remove first element from array (splice)
Let's say you have multple lines of data in an array
my @foo = qw( line 1 line 2 line 3 );
You can print the array.
And all of the lines will be printed.
line 1 line 2 line 3
Splice can be used to remove the first line from the array.
splice (@foo, 0, 1);
Now when you print the array, line 1 has been removed.
line 2 line 3