in reply to Re^6: perldoc -lf anomaly (%_)
in thread perldoc -lf anomaly

I think that's because $a and $b are package variables, not globals. Same with @F under -a.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^8: perldoc -lf anomaly (%_)
by LanX (Saint) on May 08, 2026 at 13:02 UTC
    Hmm yes, $a and $b live - if needed - in the current package and not main::

    $ perl -E'package tst; sort{$a le $b} 1..100; say exists $tst::{a}; us +e strict; say $a;' 1

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery