Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^7: 'rgb_palette' - Term::ANSIColor Helper -- errors on strawberry

by kcott (Archbishop)
on Aug 18, 2022 at 10:53 UTC ( #11146223=note: print w/replies, xml ) Need Help??


in reply to Re^6: 'rgb_palette' - Term::ANSIColor Helper -- errors on strawberry
in thread 'rgb_palette' - Term::ANSIColor Helper

Firstly, I'm glad this finally worked for you.

"the following version is also agnostic about the perl version"

Leaving out a "use VERSION;" statement does not achieve this; nor does adding a "use feature LIST;" statement.

Your code will have problems with older Perl versions. Here's a non-exhaustive list:

  • Subroutine signatures were introduced in v5.20.0 (see "perl5200delta: Experimental Subroutine signatures"). I added information in the OP on how to deal with this.
  • I didn't really expect anyone to wind back v5.36 to a pre-5.10 version, so I made no comment about that in the OP; however, say() was introduced in v5.10.0 (see "perl5100delta: say()").
  • And for the same reason as the above point, I didn't mention that IO::Prompter requires v5.10.0 (see the first line of its source).
  • And, in the later fix for the MSWin bug, \R requires v5.10.0 (see "perlrebackslash: \R").

— Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146223]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2023-09-21 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?