programming-examples/perl/Datatype/Reference Modification.pl
2019-11-15 12:59:38 +01:00

9 lines
180 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
my @band = qw(A B C D);
my $ref = \@band;
print "Band members before: @band\n";
pop @{$ref};
print "Band members after: @band\n";