what is the function in perl that returns current dir ?
Thanks
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Quick Reply: If you are in Windows OS, this would work:
perl -e "use Win32; print Win32::GetCwd();"
- Original Message -
From: "Pradeep Sethi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 8:23 PM
Subject: get current dir
I am on unix
I am doing this :
my $dir=`pwd`;
but I was looking, if there is a function in perl.
> -Original Message-
> From: Rex Arul [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 16, 2001 5:36 PM
> To: Pradeep Sethi; [EMAIL PROTECTED]
> Subject: Re:
On Fri, Nov 16, 2001 at 05:23:19PM -0800, Pradeep Sethi wrote:
> what is the function in perl that returns current dir ?
see perldoc Cwd
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
--
To unsubscribe, e-mail: [EMAIL PR
D]>
Sent: Friday, November 16, 2001 8:34 PM
Subject: Re: get current dir
> On Fri, Nov 16, 2001 at 05:23:19PM -0800, Pradeep Sethi wrote:
> > what is the function in perl that returns current dir ?
>
> see perldoc Cwd
>
>
> Michael
> --
> Administr
On Nov 16, Rex Arul said:
>C:\WINDOWS>perldoc -f Cwd
>No documentation for perl function `Cwd' found
perldoc -f Cwd is not the same as perldoc Cwd.
There is a standard module, Cwd.pm, that gives you a cwd() function.
>From: "Michael Fowler" <[EMAIL PROTECTED]>
>
>> On Fri, Nov 16, 2001 at 05:2