Thread (6 messages) flat view 6 messages, 5 authors, 2016-06-15

Re: git-remote: Use of uninitialized value in string ne, line 248

From: Ralf Wildenhues <hidden>
Date: 2016-06-15 22:43:44

Possibly related (same subject, not in this thread)

* 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help