TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:2562] learning perl and variables



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)?

The @ENV hash has 'em all (and can be used for setting env variables).

to get $LOGNAME:

	$ENV{'LOGNAME'}


--
Ry4an Brase - http://acm.cs.umn.edu/~ry4an - 612-623-9946
'If you're not a rebel when you're 20 you've got no heart; if
 you're  not establishment when you're 30 you've got no brain.'