On Tue, 17 Jul 2001, Tyler Longren wrote:

> That doesn't seem to work.  I want if a variable doesn't equal anything,
> then do something.  Here's a piece:
> if ($options{a} eq "" && $options{a} eq "") {

You are comparing the same thing here twice???

How about

if ( !defined($options{a}) && !defined($options{i}) ) {

  ...
}

Usually for usage messages, though, I do something like:

my $usage =<<"USAGE";
usage stuff
usage stuff
USAGE

my $someval = $ARGV[0] or die $usage;

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
You need no longer worry about the future.  This time tomorrow you'll be dead.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to