in reply to Re: Difference between $1 and \1.
in thread Difference between $1 and \1.

$str = aa;

Unless you have a variable named aa somewhere, that line will give you an error.

It is only an error when strict subs are in effect.
{ no strict 'subs'; my $str = aa; say $str; }
Though having strict on is almost always a good thing.