Skip to content

Instantly share code, notes, and snippets.

@akiniwa
Created November 29, 2013 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akiniwa/7701154 to your computer and use it in GitHub Desktop.
Save akiniwa/7701154 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Time::HiRes;
my $a = 0;
my $i;
my $start = Time::HiRes::gettimeofday();
open(my $FILE, "<master2") or die "Cannot open ";
while (my $line = readline $FILE) { # foreach$B%+%C%3(B
$line =~ s/http/firo/g;
}
close $FILE;
my $end = Time::HiRes::gettimeofday();
print $end - $start, "[s]";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment