Glenn Cannon wrote: > > Hi all, Hello,
> Couple of questions from a newbie...
>
> 1) How can I print the current directory name?
use Cwd;
my $dir = cwd;
print "The current directory is $dir\n";
> 2) How can I check to see if a file I know the name of exists?
if ( -e $filename ) {
print "$filename exists\n";
}
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
