dkaplowitz has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to expand this script#!/usr/bin/perl use warnings; use strict; open OUTPUT, ">c:/temp/warning.txt"; open LOGFILE, "shift.txt" or die "What you talkin bout Willis? ($!)"; while (<LOGFILE>) { print "$_\n" if /secret\.html/; print OUTPUT "The text you were looking for was found\."; last; } close OUTPUT;
Can anyone help me with the syntax? Thanks! Davestringa = '"imagdata.zip is ready for transfer"'; stringb = '"ConnectDirect Transfer was initiated"';, etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search for complex string, and if it doesn't exist...
by Abigail-II (Bishop) on Mar 25, 2004 at 16:58 UTC | |
by dkaplowitz (Novice) on Mar 25, 2004 at 18:28 UTC | |
by QM (Parson) on Mar 25, 2004 at 19:43 UTC | |
|
Re: Search for complex string, and if it doesn't exist...
by Scarborough (Hermit) on Mar 26, 2004 at 15:26 UTC |