in reply to System Variables
If you're after system environment variables, have a look at the ENV hash.
For example, to get the current user's home directory on a UNIX host ($HOME in shell) try :
Cheers.#!/usr/bin/perl use strict; use warnings; print $ENV{'HOME'}, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: System Variables
by archen (Pilgrim) on Oct 09, 2002 at 23:33 UTC | |
by Aristotle (Chancellor) on Oct 10, 2002 at 00:01 UTC | |
by blakem (Monsignor) on Oct 10, 2002 at 00:22 UTC |