in reply to Re^3: Why \n matches but not $^? (weight)
in thread Why \n matches but not $^?

BTW: Why are you and tye using Perl's -l switch?

It adds a newline to every print statement. See perlrun for more information.

If you have perl 5.10.0 or newer, you can say perl -wE 'say ...' instead.