Re: git-remote: Use of uninitialized value in string ne, line 248
- From
- Ralf Wildenhues <ralf.wildenhues@gmx.de>
- Date
- Oct 24, 2007, 20:40 UTC
- Message-ID
- <20071024204010.GC15978@ins.uni-bonn.de>
- In-Reply-To
- <20071024202724.GA2292@piper.oerlikon.madduck.net>
* martin f krafft wrote on Wed, Oct 24, 2007 at 10:27:24PM CEST:
> > perl -e 'print "The earth is a disk!\n" if ( "earth" == "flat" );'
Well, numerical equality and string equality are two different things, try eq instead (see: perldoc perlop).
> Is there a way to make it explicit that you're checking for a value > being defined, where a "false" value would count as true, just as > long as there is a value?
Yes. It's called "defined". perl -e 'my $a=0; print "yes\n" if defined $a;'
It should be used here, to allow "0" branches.
Cheers, Ralf