Re: Terminal::ANSIColor problem

2017-02-28 Thread Todd Chester
On 02/28/2017 04:11 AM, yary wrote: You don't need the double quotes around $Str- not even in Perl5! Hi Yary, You made me think of where I picked up that particular "bad habit". I go it, not from Perl 5, but from bash programming, where all h*** breaks loose if you don't quote things. :-) -T

Re: Terminal::ANSIColor problem

2017-02-28 Thread ToddAndMargo
On 02/28/2017 12:53 PM, Brandon Allbery wrote: On Tue, Feb 28, 2017 at 3:46 PM, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: On 02/28/2017 04:11 AM, yary wrote: On Tue, Feb 28, 2017 at 12:53 AM, ToddAndMargo mailto:toddandma...@zoho.com>

Re: Terminal::ANSIColor problem

2017-02-28 Thread Brandon Allbery
On Tue, Feb 28, 2017 at 3:46 PM, ToddAndMargo wrote: > On 02/28/2017 04:11 AM, yary wrote: > >> >> On Tue, Feb 28, 2017 at 12:53 AM, ToddAndMargo > > wrote: >> >> sub PrintRed ( $Str ) { print color('bold'), color('red'), >> "$Str", color('reset'); } >>

Re: Terminal::ANSIColor problem

2017-02-28 Thread ToddAndMargo
On 02/28/2017 04:11 AM, yary wrote: On Tue, Feb 28, 2017 at 12:53 AM, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: sub PrintRed ( $Str ) { print color('bold'), color('red'), "$Str", color('reset'); } sub PrintGreen ( $Str ) { print color('bold'), color('green'), "$Str",

Re: Terminal::ANSIColor problem

2017-02-28 Thread yary
On Tue, Feb 28, 2017 at 12:53 AM, ToddAndMargo wrote: > sub PrintRed ( $Str ) { print color('bold'), color('red'), "$Str", > color('reset'); } > sub PrintGreen ( $Str ) { print color('bold'), color('green'), "$Str", > color('reset'); } > sub PrintBlue ( $Str ) { print color('bold'), color('b

Re: Terminal::ANSIColor problem

2017-02-27 Thread ToddAndMargo
On 02/26/2017 04:13 AM, ToddAndMargo wrote: Hi All, Reference: https://github.com/tadzik/Terminal-ANSIColor/ How do I clean this Perl 5 line for Perl 6? 44: use Terminal::ANSIColor qw( BOLD BLUE RED GREEN RESET ); # perl6 -c CimTrakCheckAndResatart.pl6 ===SORRY!=== Error while compiling /hom

Re: Terminal::ANSIColor problem

2017-02-26 Thread ToddAndMargo
On 02/26/2017 06:44 PM, Brandon Allbery wrote: It should be the first, but it appears to be unimplemented at present. Only tagged imports work (https://docs.perl6.org/language/modules#Exporting_and_Selective_Importing). "Note there currently is no way for the user to import a single object if th

Re: Terminal::ANSIColor problem

2017-02-26 Thread Brandon Allbery
On Sun, Feb 26, 2017 at 9:38 PM, ToddAndMargo wrote: > On 02/26/2017 06:02 PM, Brandon Allbery wrote: >> >> On Sun, Feb 26, 2017 at 8:14 PM, ToddAndMargo > > wrote: >> >> Speaking of syntax errors, what is wrong with these >> two lines (not used a the same ti

Re: Terminal::ANSIColor problem

2017-02-26 Thread ToddAndMargo
On 02/26/2017 05:56 PM, yary wrote: Hmm... use Terminal::ANSIColor;**//___^ by itself will import color and everything else. For selectively importing only what you want- which is good style IMHO- I looked up this https://docs.perl6.org/language/modules#___top which says "Note there currently

Re: Terminal::ANSIColor problem

2017-02-26 Thread ToddAndMargo
On 02/26/2017 06:02 PM, Brandon Allbery wrote: On Sun, Feb 26, 2017 at 8:14 PM, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: Speaking of syntax errors, what is wrong with these two lines (not used a the same time)? use Terminal::ANSIColor qw[ color ]; use Terminal::ANSICo

Re: Terminal::ANSIColor problem

2017-02-26 Thread Brandon Allbery
On Sun, Feb 26, 2017 at 8:14 PM, ToddAndMargo wrote: > Speaking of syntax errors, what is wrong with these > two lines (not used a the same time)? > > use Terminal::ANSIColor qw[ color ]; > use Terminal::ANSIColor::color; > The first one attempts to import a symbol "color" from the module "Termi

Re: Terminal::ANSIColor problem

2017-02-26 Thread ToddAndMargo
On 02/26/2017 05:59 PM, ToddAndMargo wrote: On 02/26/2017 05:14 PM, ToddAndMargo wrote: And he doesn't link the POD. Where is the POD by the way? Found it: https://github.com/tadzik/Terminal-ANSIColor/commit/c95c318efe6ee1596d012146f4fed7e15f1f316e This is better: https://github.com/

Re: Terminal::ANSIColor problem

2017-02-26 Thread ToddAndMargo
On 02/26/2017 05:14 PM, ToddAndMargo wrote: And he doesn't link the POD. Where is the POD by the way? Found it: https://github.com/tadzik/Terminal-ANSIColor/commit/c95c318efe6ee1596d012146f4fed7e15f1f316e -- ~~ Computers are like air conditioners. They m

Re: Terminal::ANSIColor problem

2017-02-26 Thread yary
Hmm... use Terminal::ANSIColor; by itself will import color and everything else. For selectively importing only what you want- which is good style IMHO- I looked up this https://docs.perl6.org/language/modules#___top which says "Note there currently is no way for the user to import a single obj

Re: Terminal::ANSIColor problem

2017-02-26 Thread ToddAndMargo
On 02/26/2017 07:28 AM, yary wrote: On Sun, Feb 26, 2017 at 8:21 AM, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: Now what am I doing wrong? Read the POD! I was over here at https://github.com/tadzik/Terminal-ANSIColor/ "This is a Term::ANSIColor module for Perl 6." I

Re: Terminal::ANSIColor problem

2017-02-26 Thread yary
On Sun, Feb 26, 2017 at 8:21 AM, ToddAndMargo wrote: > Now what am I doing wrong? > Read the POD! use Terminal::ANSIColor; say color('bold'), "this is in bold", color('reset'); =head2 C Given a string with color names, the output produced by C sets the terminal output so the text printed

Re: Terminal::ANSIColor problem

2017-02-26 Thread ToddAndMargo
On 02/26/2017 05:12 AM, yary wrote: On Sun, Feb 26, 2017 at 7:13 AM, ToddAndMargo mailto:toddandma...@zoho.com>> wrote: Undeclared routine: qw used at line 44 Use any other bracketing than parens, eg qw[a b c d] or qw/a b c d/ Parens are used for calling subs/methods so qw(.. ..

Re: Terminal::ANSIColor problem

2017-02-26 Thread yary
On Sun, Feb 26, 2017 at 7:13 AM, ToddAndMargo wrote: > Undeclared routine: > qw used at line 44 > Use any other bracketing than parens, eg qw[a b c d] or qw/a b c d/ Parens are used for calling subs/methods so qw(.. ... ...) means "call the sub named qw" Fixing that may make the rest work

Terminal::ANSIColor problem

2017-02-26 Thread ToddAndMargo
Hi All, Reference: https://github.com/tadzik/Terminal-ANSIColor/ How do I clean this Perl 5 line for Perl 6? 44: use Terminal::ANSIColor qw( BOLD BLUE RED GREEN RESET ); # perl6 -c CimTrakCheckAndResatart.pl6 ===SORRY!=== Error while compiling /home/linuxutil/CimTrakCheckAndResatart.pl6 Und