2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
8
Task/Arrays/Perl/arrays-1.pl
Normal file
8
Task/Arrays/Perl/arrays-1.pl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
my @empty;
|
||||
my @empty_too = ();
|
||||
|
||||
my @populated = ('This', 'That', 'And', 'The', 'Other');
|
||||
print $populated[2]; # And
|
||||
|
||||
my $aref = ['This', 'That', 'And', 'The', 'Other'];
|
||||
print $aref->[2]; # And
|
||||
5
Task/Arrays/Perl/arrays-3.pl
Normal file
5
Task/Arrays/Perl/arrays-3.pl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
my @multi_dimensional = (
|
||||
[0, 1, 2, 3],
|
||||
[qw(a b c d e f g)],
|
||||
[qw(! $ % & *)],
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue