in reply to using grep to test a partition

i love to abuse @ARGV and <>...
if (grep m{nfs}, grep m{/home}, map <>, local @ARGV=qw{/etc/mtab}) { # ... } else { # ... }

update: or, perhaps a little more friendly,

if (local @ARGV=qw(/etc/mtab) and grep /nfs/, grep m{/home}, <>) { # ... } else { # ... }