> and I quoted him wrong
Yes, you did. I said "The example in the book" (emphasis mine, but at a later time), by which I meant that particular example. The book definitely mentions undef somewhere.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
| [reply] [d/l] |
| [reply] [d/l] |
| [reply] |
I see, thank you. I have another question,in this piece of code
say "Catastrophic crypto fail!" if $alice eq $bob;
what value is $alice eq $bob producing? | [reply] [d/l] |
c:\@Work\Perl\monks>perl -wMstrict -le
"use Data::Dump qw(dd);
;;
my $value;
;;
my $alice = 'alice';
my $bob = 'alice';
;;
$value = $alice eq $bob;
dd 'result of evaluating a comparison that is true', $value;
;;
$alice = 'alice';
$bob = 'bob';
;;
$value = $alice eq $bob;
dd 'result of evaluating a comparison that is false', $value;
"
("result of evaluating a comparison that is true", 1)
("result of evaluating a comparison that is false", "")
See also Relational Operators and Equality Operators in perlop.
Update: Didn't read far enough before posting; question already asked and answered.
Give a man a fish: <%-{-{-{-<
| [reply] [d/l] [select] |