Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

perltidy and experimental for_list

by ibm1620 (Pilgrim)
on Aug 01, 2022 at 17:39 UTC ( #11145876=perlquestion: print w/replies, xml ) Need Help??

ibm1620 has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

Perltidy (ver 20220613) currently doesn't handle the v5.36 for_list syntax.

Running perltidy -npro:

Before:

#!/usr/bin/env perl use v5.36; no warnings q/experimental::for_list/; for my ( $k, $v ) ( %ENV ) { say "$k=$v"; } say "Done";
After:
#!/usr/bin/env perl use v5.36; no warnings q/experimental::for_list/; for my ( $k, $v ) (%ENV){ say "$k=$v"; } say "Done";
Does its experimental status mean that it won't be supported by perltidy? Are there .perltidyrc settings to keep it from removing the line break following the closing bracket?

Thanks!

Replies are listed 'Best First'.
Re: perltidy and experimental for_list (already fixed)
by LanX (Sage) on Aug 01, 2022 at 18:15 UTC
    Hi IBM! ;-)

    According to this issue it has already been fixed 5 days ago on GitHub.

    edit

    you seem to have the newest CPAN version, I dunno how often the author Steve Hancock will release new versions.

    But as a workaround you should be able to build it from github and put it into a private @INC path with higher priority, till it's officially relased.

    update

    Meta answer: How did I find that?

    I went to the CPAN page and found this link https://metacpan.org/pod/Perl%3A%3ATidy#BUG-REPORTS

    Web-Search didn't help because there are "out-fashioned" SourceForge and request-tracker lists, which show up first.

    update

    I just noted that the author says he wants bug-reports on rt ...

    > 'To report a new bug or problem, use the "issues" link on this page.'

    ... but github-issues seem to be much more frequented.

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

      Thank you, Rolf! The .03 update from 5 days ago addressed it. Have dl'ed, installed, and it works.

      And thanks for the reminder about bug reports on CPAN :-)

        > Have dl'ed, installed, and it works.

        from GitHub I suppose?

        > And thanks for the reminder about bug reports on CPAN :-)

        No thanks needed. These posts are read hundreds of times, please don't take it "personally" ;-)

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11145876]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2022-08-14 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?