in reply to Re^2: Regex to extract number from text file
in thread Regex to extract number from text file

You need to change the code:
my $search =~ m/ClearQuest\: \(Total of 18 licenses issued\; Total of +(\d+)/;
to:
(my $search)=$_=~ m/ClearQuest\: \(Total of 18 licenses issued\; Total + of (\d+)/;