in reply to Newbie flabbergasted by string compare results

print "a" eq "a"."\n";

is equivalent to:

print("a" eq "a\n");

You could use parentheses:

print(("a" eq "a")."\n");

Or use comma instead of concatenation:

print "a" eq "a", "\n";

Better yet, if you've got a vaguely recent version of Perl, use say:

use feature 'say'; say "a" eq "a";
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name