use strict;
use warnings;
use Cwd;
use File::Find;
my $search_pattern='search_pattern' ;
my $replace_pattern = 'replace_pattern';
# my $replace_pattern = 'pla';
my $file_pattern ='.*?html';
find(\&d, cwd);
sub d {
my $file = $File::Find::name;
$file =~ s,/,\\,g;
return unless -f $file;
return unless $file =~ /$file_pattern/;
use Tie::File ;
tie my @file_array , 'Tie::File', $file , memory => 100_000_000 or die "I cannot find the $file" ;
foreach my $line (@file_array) #foreach line of the file
{
$line =~ s/$search_pattern/$replace_pattern/igo ;
}
print $file . " done !!! \n" ;
untie @file_array ;
}
#sources copy pasted fro
Lost ASP.NET Identity Cookies on IIS Application Pool Restarts
-
[image: Cookie Monster Attack On Iis]
Last week I finally updated my blog and moved it to .NET 10 from the
ancient WebForms based engine I built 20 years...
2 weeks ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!