Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on CAR and CDR. Parent comment
For eg:
use perl5i::2; sub autobox::Core::ARRAY::car { $_[0]->[0] } sub autobox::Core::ARRAY::cdr { my $last = $#{$_[0]}; wantarray ? @{$_[0]}[1 .. $last] : [@{$_[0]}[1 .. $last]]; }
my @a = 1..4; @a->car; # 1 @a->cdr->cdr->car; # 3 @a->cdr; # 2, 3, 4 my @x = @a->cdr; @x->cdr; # 3, 4
There are no comments on this comment yet.
For eg:
then... Some refs: https://metacpan.org/pod/perl5i | https://metacpan.org/pod/autobox::Core