mkb125 has asked for the wisdom of the Perl Monks concerning the following question:
My ultimate goal is to match this:local $/; # slurp the entire file local *FH; open (FH, $file_name) or die "Cannot open"; my $text = <FH> if ($text =~ /[^Total Datafile Size MB\s*][^-{22}]/s) { print "Matched\n"; }
Edited by Chady -- Added code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching Across Lines
by duff (Parson) on Feb 24, 2004 at 22:12 UTC | |
by mkb125 (Initiate) on Feb 25, 2004 at 18:43 UTC | |
by mkb125 (Initiate) on Feb 25, 2004 at 19:37 UTC | |
|
Re: Matching Across Lines
by mkb125 (Initiate) on Feb 24, 2004 at 21:38 UTC | |
by matija (Priest) on Feb 24, 2004 at 21:48 UTC |