I wouldn't expect ChatGPT to generate valid Perl; it's hard enough for human beings to do that without knowing Perl.
do { CORE::say $_ for 1 .. 5 } for 1 .. 10;
You could try that. I wouldn't. But you could.
Edit: Even more convoluted: do { CORE::say $_ for 1 .. $_ } for 1 .. 10;. I guess tinkering like this helps figure out how context and loops work, if that's the goal.In reply to Re: postfix "for" question?
by SankoR
in thread postfix "for" question?
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |