@roboticus

Thanks for the help. I've tried the code that you've just gave and it didn't worked in Perl hehehe! However when I tried that on creating a batch file it worked :)

@BrowserUk

Right now I'm trying to figure out what is the problem.. I installed the Win32::Console::ANSI and the status is done.. But when I run the code still the error persist.. When I checked my library on Perl Strawberry, there is no Win32::Console::ANSI folder there (even the library of vender and site folders, anyway I just checked them if in case if it was installed there).. Anyway to add some information regarding this it seems the installation progress is installed at the ActivePErl not on the Strawberry Perl... To add up here's the exact message of the problem..

"Can't locate loadable object for module Win32::Console::ANSI in @INC +(@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor +/lib C:/strawberry/perl/lib .) C:\Users\willy\Documents\Perl\colortes +t.pl line 1 Compilation failed in require at C:\Users\willy\Documents\Perl\colorte +st.pl line 1 BEGIN failed--compilation aborted at C:\Users\willy\Documents\Perl\col +ortest.pl line 1."

I followed the steps on installing the module (referring to the previous post) but still the problem persist. I'm running Windows 7 Professional 64-bit, and im running perl either command line or the strawberry command line at run as administrator..

Hope you could help me troubleshoot this with this information given.. Thanks to all for the help.


In reply to Re: Colored text output in Windows cmd by astronogun
in thread Colored text output in Windows cmd by astronogun

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.