Skip to content

Instantly share code, notes, and snippets.

use Term::ANSIColor;
#Open a text file with a list of users to highlight
open our $handle, '<', "/home/<your username>/tweetersToHighlight.txt";
chomp(our @customConsole = <$handle>);
#Convert array to hash/dictionary
our %users = map { $_ => 1 } @customConsole;
close $handle;
#Setup ttytter hook
$handle = sub {