in reply to How to test if a directory exists?
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
|
|---|