- or download this
open (FIND_CMD, "find /home/modules |");
chomp (my @findArr = <FIND_CMD>);
- or download this
my $pattern = '.pm$';
my $FilePattern = "sub user_method";
...
foreach my $File ( @findArr )
{
next if ( $File !~ m/$pattern/ );
- or download this
system ("grep -iHl \"$FilePattern\" \"$File\" >> $ResultFilePath ")
+;
- or download this
#!/usr/bin/perl
...
}
__END__
- or download this
#!/usr/bin/perl -ln
...
/sub user_method/ and (print $ARGV), last while <> ;
__END__