RE: 2 simple questions - update:

2002-01-15 Thread Peter Cornelius
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

Re: 2 simple questions - update:

2002-01-15 Thread Frank
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 "$_

2 simple questions - update:

2002-01-15 Thread Chris
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

RE: 2 simple questions...

2002-01-15 Thread Bob Showalter
> -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

RE: 2 simple questions...

2002-01-14 Thread Peter Cornelius
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

Re: 2 simple questions...

2002-01-14 Thread Steven Brooks
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

2 simple questions...

2002-01-14 Thread Chris Anderson
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?