-
Only lambdas can be closures, not named subroutines.
-
The idiomatic way of getting a list’s length is to assign it to a scalar.
my @coolList = (1, 2, 3); my $coolListLength = @coolList;
-
There is no boolean data type in Perl;
0
,'0'
,''
,()
, andundef
are falsy and all other values are truthy. This makes it very hard to representtrue
orfalse
alongside those other data types. The JSON::XS library handles this awkwardness with references:\0
and\1
.
Last active
August 15, 2017 05:51
-
-
Save Lochlan/18287b135301529951966d9587b2004b to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment