in reply to how to use file::scan
What i'm guessing is that the file you're scanning has no viruses, thus nothing will really "show up" (and the previous bit of code will be skipped as well). You'll only have to worry when $fs->suspicious returns true (meaning a virus was found).if($fs->suspicious) { # do something. }
As you can see: no errors, it was scanned, and it wasn't suspicious. all is well.use File::Scan; $fs = File::Scan->new(extension => 'bad', move => 'infected'); $fs->scan('a.pl'); #scan this file, it has no viruses =) print 'er: ', $fs->error, "\n"; print 'sk: ', $fs->skipped, "\n"; print 'su: ', $fs->suspicious, "\n"; __output__ er: sk: 0 su: 0
|
|---|