Re: Current directory?
- From: gustav@xxxxxxxxxxxxxx (Gustav Wiberg)
- Date: Thu, 29 Sep 2005 12:14:44 +0200
Hi there!
Thanx! I'll try that! :-)
/G
----- Original Message ----- From: "Jeff Peng" <jeffpyh@xxxxxxxxx>
To: <gustav@xxxxxxxxxxxxxx>
Cc: <beginners@xxxxxxxx>
Sent: Thursday, September 29, 2005 10:27 AM
Subject: Re: Current directory?
#!/usr/bin/perl use strict; use Cwd;
print getcwd,"\n"; #get the current path
print $ENV{PATH}; #get the path from environment variable2005/9/29, gustav@xxxxxxxxxxxxxx <gustav@xxxxxxxxxxxxxx>:
Hi there!
I want to get the current environment variable (current directory), and I type like this:
$currentpath = %ENV;
and I get something like 37/64 instead of maybe usr/username/test
How do I get current directory?
/G
-- To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx For additional commands, e-mail: beginners-help@xxxxxxxx <http://learn.perl.org/> <http://learn.perl.org/first-response>
-- Jeff Peng jeffpyh@xxxxxxxxx
-- To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx For additional commands, e-mail: beginners-help@xxxxxxxx <http://learn.perl.org/> <http://learn.perl.org/first-response>
-- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.8/114 - Release Date: 2005-09-28
.
- References:
- Current directory?
- From: gustav
- Re: Current directory?
- From: Jeff Peng
- Current directory?
- Prev by Date: Re: Current directory?
- Next by Date: Re: DBI fetch
- Previous by thread: Re: Current directory?
- Next by thread: Re: Current directory?
- Index(es):
Relevant Pages
|
|