sheesh - that's a lot easier then the way I do it :P
thanks.
~Eric
On Tuesday, April 2, 2002, at 07:09 PM, John W. Krahn wrote:
> 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]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]