in reply to How do I call a DOS command with a /C variable in PERL ?

$times = system( "find /c 210.55.54.33 c:\logs\log.log");

if you want the output from find available to your perl script then use qw instead of system.

I should point out that since you are in perl, you might want to consider using grep instead.

use strict; open ( LOG, "C:\logs\log.log" ) or die "Opening file, $!"; my $count = scalar( grep( /210\.55\.54\.33/, <LOG> ) ); close LOG or die "closing file, $!";

$count has the value you are looking for. Above code has not been tested