hurricup has asked for the wisdom of the Perl Monks concerning the following question:
Encountered an interesting piece of code inside of ExtUtils::Constant::Base:
The question is about $->1. According to perlvar $- is a The number of lines left on the page of the currently selected output channel. And what are we doing here? Comparing lines number with anonymous array? What the..?my $l = ref $a eq 'ARRAY' ? ($a->[0] || $->[1]) : $a;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: The mystery of $->[1]
by kcott (Archbishop) on Jul 11, 2015 at 20:59 UTC | |
by hurricup (Pilgrim) on Jul 11, 2015 at 21:05 UTC | |
Re: The mystery of $->[1]
by LanX (Saint) on Jul 11, 2015 at 20:56 UTC |
Back to
Seekers of Perl Wisdom