in reply to Re^4: Learning Programming, desperately need to know what information is contained in scalar variables
in thread Learning Programming, desperately need to know what information is contained in scalar variables
These things can be found out by experimentation. Experimentation is easy and highly encouraged.
See also Relational Operators and Equality Operators in perlop.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", "")
Update: Didn't read far enough before posting; question already asked and answered.
Give a man a fish: <%-{-{-{-<
|
---|
In Section
Seekers of Perl Wisdom