hurricup has asked for the wisdom of the Perl Monks concerning the following question:
Each array @{"_<$filename"} holds the lines of $filename for a file compiled by Perl. The same is also true for evaled strings that contain subroutines, or which are currently being executed. The $filename for evaled strings looks like (eval 34).But perl 5.36 warns in my debugger as: Argument "use v5.36;\n" isn't numeric in numeric eq (==) at
Values in this array are magical in numeric context: they compare equal to zero only if the line is not breakable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl 5.36 warns for magic comparison
by ikegami (Patriarch) on Oct 15, 2023 at 17:54 UTC | |
by ikegami (Patriarch) on Oct 21, 2023 at 05:51 UTC | |
|
Re: Perl 5.36 warns for magic comparison
by choroba (Cardinal) on Oct 15, 2023 at 14:08 UTC | |
by ikegami (Patriarch) on Oct 15, 2023 at 17:32 UTC | |
|
Re: Perl 5.36 warns for magic comparison
by Anonymous Monk on Oct 15, 2023 at 15:26 UTC | |
by ikegami (Patriarch) on Oct 15, 2023 at 17:32 UTC | |
by Bod (Parson) on Oct 15, 2023 at 20:46 UTC | |
by ikegami (Patriarch) on Oct 17, 2023 at 17:56 UTC |