This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use IO::Socket; | |
use Term::ANSIColor; | |
sub get_file( $ ){ | |
my ($filename) = @_; | |
open FD, "<$filename" || die( "Cannot open $filename: $!\n" ); | |
my $text = do { local $/; <FD>; }; |