Advertisement
chotoipho

ansi_colors.pl

Dec 18th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.41 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2. use strict;
  3. use Term::ANSIColor qw(:constants);
  4.  
  5. my $line = "|Betty is cool?!?!.|";
  6.  
  7. print RED, "Stop!\n", RESET;
  8. print YELLOW, "Slow Down!\n", RESET;
  9. print GREEN, "Go!\n", RESET;
  10.  
  11.  
  12.  
  13. printf "%-10s%-50s %s %s %s %s\n", BLUE, "file1 6", RESET, GREEN, "$line", RESET, "7th";
  14. printf "%-10s%-50s %s %s %s %s %s\n", BLUE, "file1 6", RESET, GREEN, "$line", RESET, "7th";
  15.  
  16.  
  17. print "done.\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement