You should really pick up "Programming Perl" it is explained in there. It is also under 'perldoc -d' grep#!/usr/bin/perl -w use strict; my $dir = '/etc'; if (-e $dir and -d $dir) { print "SPOON :)\n"; } else { print "spork :(\n"; }
grep> cd pub grep> more beer
In reply to Re: How to test if a directory exists?
by grep
in thread How to test if a directory exists?
by newbie00
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |