in reply to Re: Matching Across Lines
in thread Matching Across Lines
The second number will now be in $2.if ($text =~ /^Total Datafile Size MB\s*\n(.*)^-{22}\s*\n(\d+\.\d+)/s)
While you're at it, you should also change the .* in the first paren with something like \d+\.\d+.
I realize both work right now, but if you get some funny stuff in your file, the stricter version will make sure you don't pick up a non-number.
|
|---|