Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Need Perl6: Inline::Perl5 help

by Laurent_R (Canon)
on Mar 04, 2017 at 15:49 UTC ( [id://1183649]=note: print w/replies, xml ) Need Help??


in reply to Need Perl6: Inline::Perl5 help

Hi Todd Chester,

the syntax you use does not work either with Term::ANSIColor used with Perl 5. So, it appears that it is your syntax for using such module that is faulty. Please check the documentation.

I can't test right now, but perhaps try something along these lines:

my $red = color("red"); print $red; my $reset = color('reset'); print ( $red ~ "--Red--" ~ $reset ~ "foo\n\n" );
or possibly:
my $red = Term::ANSIColor::color("red"); print $red; my $reset = Term::ANSIColor::color('reset'); print ( $red ~ "--Red--" ~ $reset ~ "foo\n\n" );
Update: Fixed a capital letter at the beginning of a variable.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found