#!/usr/bin/perl -w
use strict;
my $dir="D:\\perl_script\\anroidmanifest\.txt";
open (F1,"$dir")||die "Cannot open $dir:$!";
while () {
if (/MAIN/) {
last;
}
if (/<\/activity>/../next;
}
if (/<\/action>/../
if (/android:name="(.+)"/) {
print "$1";
last;
}
}
}
}
阅读(620) | 评论(0) | 转发(0) |