8:46 PM
To: [EMAIL PROTECTED]
Subject: 2 simple questions - update:
On the path issue:
What I need to do is to verify if a specific directory exists in the
current directory:
if exists($PWD/ThisDir) then
print "WH00T"
End If
Type statement...
TIA
Chris Anderson
--
To uns
On Mon, Jan 14, 2002 at 10:45:35PM -0600, Chris wrote:
> On the path issue:
>
> What I need to do is to verify if a specific directory exists in the
> current directory:
>
> if exists($PWD/ThisDir) then
>print "WH00T"
> End If
---end quoted text---
$_='/home/frank/';
print "foo" if -e "$_
On the path issue:
What I need to do is to verify if a specific directory exists in the
current directory:
if exists($PWD/ThisDir) then
print "WH00T"
End If
Type statement...
TIA
Chris Anderson
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
> -Original Message-
> From: Chris Anderson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 14, 2002 10:58 PM
> To: [EMAIL PROTECTED]
> Subject: 2 simple questions...
>
>
> I need to be able to do a wget (But not with a system() command if
> possible)
Us
LWP::Simple will do what you want.
>From the docs...
use LWP::Simple;
$content = get("http://www.sn.no/";)
Hope this helps,
Peter C.
-Original Message-
From: Chris Anderson [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 7:58 PM
To: [EMAIL PROTECTED]
Subj
On Monday 14 January 2002 08:58 pm, Chris Anderson wrote:
> I need to be able to do a wget (But not with a system() command if
> possible)
> I need to get the current directory. In Linux I type pwd and it shows it
> to me, or
> I can use the $PWD variable. But if I :
> print "The current p
I need to be able to do a wget (But not with a system() command if
possible)
I need to get the current directory. In Linux I type pwd and it shows it
to me, or
I can use the $PWD variable. But if I :
print "The current path is: $PWD";
it is blank.
How can I get the current path variable?