Lovely module and I'm quite happy with it (I've hacked it into my editor now).
Save the following to a file:
use warnings; my $foo;
And then check it:
perl -Mwarnings::used -c $filename
$filename syntax OK
Putting the $foo into a block or running it as a one-line finds the unused variable though:
$ perl -Mwarnings::unused -e 'use warnings; my $foo'
Unused variable my $foo at -e line 1.
Cheers,
Ovid