Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: using grep to test a partition

by mreece (Friar)
on Mar 08, 2007 at 05:37 UTC ( #603766=note: print w/replies, xml ) Need Help??


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 { # ... }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://603766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2021-02-27 01:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?