I have to read & modify certain data from .lib file. I could extract the line in which the data is present, but I could not extract the number associated with it.
open my $fh, "<" ,".....lib" or die "$!";
while(my $line = <$fh>) {
if ($line =~ m/xyz0/) {
print $line;
}
}
The code outputs the line:
+xyz0 = 0.005 hg = 0.9 rvfd = 75
I want to extract the value beside xyz0 from it. How do I do it ?