You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there missing documentation regarding the use of perl5i in the debugger? This works:
perl5i -e'$n = "2"; say "numeric!" if $n->is_number;'
numeric!
and so does this:
perl5i -de '$n = "2"; say "numeric!" if $n->is_number;'
Loading DB routines from perl5db.pl version 1.37
Editor support available.
Enter h or'h h'for help, or'man perldebug'for more help.
main::(/tmp/perl5i.nVVv5i:1): $0 = '-e'; DB<1> n main::(-e:1): $n = "2"; say "numeric!" if $n->is_number; DB<1> n main::(-e:1): $n = "2"; say "numeric!" if $n->is_number; DB<1> n numeric!
But bringing up the debugger in the classic -de1 mode I get this:
perl -de1
Loading DB routines from perl5db.pl version 1.37
Editor support available.
Enter h or'h h'for help, or'man perldebug'for more help.
main::(-e:1): 1
DB<1> use perl5i::latest;
DB<2> $n = 42;
DB<3> say"It's a number"if$n->is_number;
Can't call method "is_number" without a package or object reference at (eval 104)[/usr/local/lib/perl5/5.16.2/perl5db.pl:646] line 2. DB<4>
Adding use indirect; starting with -Mperl5i::latest ; explictly calling 'use autobox'; or using perl5i -de1 doesn't improve the situation. What am I missing?
The text was updated successfully, but these errors were encountered:
Is there missing documentation regarding the use of perl5i in the debugger? This works:
and so does this:
But bringing up the debugger in the classic -de1 mode I get this:
Adding use indirect; starting with -Mperl5i::latest ; explictly calling 'use autobox'; or using perl5i -de1 doesn't improve the situation. What am I missing?
The text was updated successfully, but these errors were encountered: