Skip to content

Instantly share code, notes, and snippets.

@athos-ribeiro
Created January 3, 2014 18:56
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 athos-ribeiro/8244106 to your computer and use it in GitHub Desktop.
Save athos-ribeiro/8244106 to your computer and use it in GitHub Desktop.
use warnings;
use strict;
my $var;
open($var, "<", "clang_pattern");
while(<$var>) {
if($_ =~ m/<tr><td class="SUMM_DESC">([A-Za-z\s\.]+)<\/td><td class="Q">([\d]+)<\/td>/) {
print "okie\n";
print "$1 \n";
print "$2 \n";
last;
}
else {
print "nops\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment