in reply to Re^2: help need with flexlm
in thread help need with flexlm
I tried with the first half of the code. But it is not printing the number.
Another thing is I have many products in the output file. I am calculating the usage of each product.
#!/usr/bin/perl local $/; open(DAT, "output1.txt") || die("Could not open file!"); my $line = <DAT>; my $product; if ( $line =~ m/Users of/ ) { $line =~ m@Product(\d+):@; $product = $1; print $product; }
|
|---|