RE: shell script problem so simple I'm embarassed to ask

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: plug-discuss
Subject: RE: shell script problem so simple I'm embarassed to ask
On Fri, 2005-02-11 at 12:48 -0700, der.hans wrote:

> > I repeatedly have to keep in mind to do things like, if ( defined($ENV{
> > 'USERADMIN_USER' } ) ) { if ( $ENV{ 'USERADMIN_USER' } ) { to keep this
> > from happening. Of course, if you only check "true" values then it
> > should not make any difference. Also, the environment variables created,
> > removed or modified using the %ENV hash are visible to any child process
> > spawned by the perl script that modified them.
>
> True, if child processes are dependent on it not existing this could cause
> probs.
>
> That also brings up the next level for Craig's code. He's not checking to
> see if that variable holds valid data.

----
that of course only begins to explain the entirety of perl coding that I
don't know and thus aren't checking for validity or sanity or anything
else.

I do marvel how I can look at someone else's perl code for say 10
minutes and realize that I haven't a clue at what is going on.

Craig

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss