From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: martin f krafft <madduck@madduck.net>
Cc: Alex Riesen <raa.lkml@gmail.com>,
Junio C Hamano <gitster@pobox.com>,
git discussion list <git@vger.kernel.org>
Subject: Re: git-remote: Use of uninitialized value in string ne, line 248
Date: Wed, 24 Oct 2007 22:40:11 +0200 [thread overview]
Message-ID: <20071024204010.GC15978@ins.uni-bonn.de> (raw)
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
next prev parent reply other threads:[~2007-10-24 20:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-24 11:08 git-remote: Use of uninitialized value in string ne, line 248 martin f krafft
2007-10-24 11:49 ` Junio C Hamano
2007-10-24 11:59 ` martin f krafft
2007-10-24 19:39 ` Alex Riesen
2007-10-24 20:27 ` martin f krafft
2007-10-24 20:40 ` Ralf Wildenhues [this message]
2007-10-25 1:48 ` Junio C Hamano
2007-10-24 20:39 ` Pierre Habouzit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071024204010.GC15978@ins.uni-bonn.de \
--to=ralf.wildenhues@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=madduck@madduck.net \
--cc=raa.lkml@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).