Update: After enabling warnings in the command line, I got the same warnings in 5.39.4. So, disregard this node.
You don't show enough for us to answer.
I tried the following in two different versions of Perl (one of them older and one newer than 5.36).
I saved the following script as 2.pl:
#!/usr/bin/perl
use strict;
use feature qw{ say };
use warnings;
my $x = 10;
for my $i (1 .. 10) {
$x += $i;
}
I then ran
perl -d 2.pl
using both the Perl versions.
5.26.1:
DB<1> @lines=@{"_<2.pl"} ; for my $i (0 .. $#lines) { CORE::say $lin
+es[$i] == 0 }
1
1
1
1
5.39.4 (blead):
DB<1> @lines=@{"_<2.pl"} ; for my $i (0 .. $#lines) { CORE::say $lin
+es[$i] == 0 }
1
1
1
1
1
1
1
The output is different, but there's no warning.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.