programming-examples/perl/Array/Shift value from array.pl

4 lines
83 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
@array = ("one", "two", "three");
$variable1 = shift(@array);
print $variable1;