TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:2562] learning perl and variables
All environment variables are available from the hash ENV in perl.
To access an environment variable use :
$ENV{LOGNAME}
or to get the Home directory use
$ENV{HOME}
and so on..
The O'Rielly Books on perl are quite nice.
Plus the perl man pages are quite good too.
--
sandipan
Ben Luey wrote:
>
> I'm trying to use perl to write my script to replace rm. Is there a perl
> variable for the bash variables $user or $LOGNAME, or someone to import
> them? Does anyone know of a good web site for learning the basics of perl
> (including a list of all internal variables)?
>