Skip to content

Instantly share code, notes, and snippets.

@skyend
Created January 31, 2013 03:57
Show Gist options
  • Save skyend/4679966 to your computer and use it in GitHub Desktop.
Save skyend/4679966 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
for my $file_name ( @ARGV ){
open my $fh, '<', $file_name;
print "\n$file_name\n\n";
for my $text ( <$fh> ){
print $text;
}
print "\n";
close $fh;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment