Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Need Perl6: Inline::Perl5 help

by duelafn (Parson)
on Mar 05, 2017 at 15:36 UTC ( [id://1183701]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl6
    use Inline::Perl5;
    ...
    # And Laurent_R is right:
    my $Blue  = Term::ANSIColor::color("blue");
    say $Blue ~ "--Blue--" ~ $Reset;
    
  2. or download this
    my $p5 = Inline::Perl5.new;
    $p5.use('Term::ANSIColor');
    my $Green = $p5.call('Term::ANSIColor::GREEN');
    say $Green ~ "--Green--" ~ $Reset;
    
  3. or download this
    Term::ANSIColor.YELLOW; # AUTOLOAD should generate YELLOW
    my $Yellow  = Term::ANSIColor::YELLOW;  # Hmm, nope :(  at least not v
    +isible to Perl6
    say $Yellow ~ "--Yellow--" ~ $Reset;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found