sub testMain { my $log_obj = LogUtils->new( ip => 'ip addr ' ); my $retrieval_time = $log_obj->log_watch( 'logfile.txt', # file name 'm-ns - - 200 GET http://www.google.com' # string to be searched ); INFO("Found retrieval of the specified string at $retrieval_time");