Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Regex to extract number from text fileby premal (Acolyte) |
on Feb 18, 2009 at 12:05 UTC ( [id://744724]=note: print w/replies, xml ) | Need Help?? |
Thanks for your reply. I tried writing following code but it is not printing anything on screen. my @temp; open(FILE,"C:\\test.txt"); @temp = <FILE>; close(FILE); foreach (@temp) { my $search =~ m/ClearQuest\: \(Total of 18 licenses issued\; Total of (\d+)/; my $wd = $1; print "\n$wd\n"; exit;
In Section
Seekers of Perl Wisdom
|
|