Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: A Tribute To The Monks Of Wisdom

by blazar (Canon)
on Nov 21, 2008 at 11:56 UTC ( #725105=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use strict;
  2. or download this
    # This is a program which reads in a list of file names from the comma
    # line and prints which files are readable, writable and/or executable
    # and whether each file exists.
  3. or download this
     while ($i < scalar(@ARGV)) {
        open(MYFILE, $ARGV[$i]) or die("Error: cannot open file '$ARGV[$i]
  4. or download this
         print "$ARGV[$i] is readable!\n" if -r MYFILE;
        print "$ARGV[$i] is writable!\n" if -w MYFILE;
        print "$ARGV[$i] is executable!\n" if -x MYFILE;
        print "$ARGV[$i] exists!\n" if -e MYFILE;
  5. or download this
     } # end while
  6. or download this

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2019-08-19 20:20 GMT
Find Nodes?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?

    Results (141 votes). Check out past polls.