C:\WINDOWS\Desktop>perl test.pl ---find 1: using system ---------- c:\autoexec.bat: 6 ->0<- $t is the exit code ---find 2: using `backticks` -> ---------- c:\autoexec.bat: 6 <- $u is the output ---find 3: 100% pure perl ->6<- $count is the match count -or, if you really want the same output format as find- ---------- c:\autoexec.bat: 6