in reply to using grep to test a partition
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 { # ... }
|
|---|