topical media & game development
professional-program-18-Perl-processLog.pl / pl
#! /usr/bin/perl
open (INPUT, "userlog.txt") or die "Couldn't open input file!";
open (OUTPUT, ">userlog.out") or die "Couldn't open output file!";
while (line =~ m/^Password: (.*)/) {
? != 0) { exit(-1) }
print OUTPUT "Password: line";
}
}
close (INPUT);
close (OUTPUT);
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.