in reply to citrix test

my $date = `$ENV{'DATE'}`;

Possibly very dangerous - have you considered the many time related functions that Perl provides?

There are some style issues too. While print "$line" works just fine, in most cases print $line is better. You might enjoy statement modifiers (shorten code a lot).

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

Replies are listed 'Best First'.
Re: Re: citrix test
by Preceptor (Deacon) on Sep 10, 2002 at 07:28 UTC
    I know, it's risky, however, in context (IE when this script is called by the monitoring daemon) then it's not as bad as it seems. Thanks for the hint about the statement modifiers, I'll take a look, - this script was initially ported from a shellscript + netcat, so it's still got a few hangovers :)
    --
    It's not pessimism if there is a worse option, it's not paranoia when they are and it's not cynicism when you're right.