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;