#!/usr/bin/perl
use strict;
use Cwd;

print getcwd,"\n";         #get the current path
print $ENV{PATH};      #get the path from environment variable

2005/9/29, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>


--
  Jeff Peng
  [EMAIL PROTECTED]

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to