repo.or.cz
/
perlbook.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial commit from the 2013 with minor fixes. From now and then,
[perlbook.git]
/
l30.pl
blob
ce78dc6f1575ac86b27e244d6bd5c255332328aa
1
#!/usr/bin/perl -w
2
3
use
strict
;
4
use
warnings
;
5
use
v5
.
10
;
6
7
my
@arr
=
qw(foo bar baz fobar qux quux)
;
8
my
$aref
=
\
@arr
;
9
say
$
$aref
[
1
];
10
say
${
$aref
}[
2
];
11
say
$aref
->[
3
];