in reply to Re: Difference between $1 and \1.
in thread Difference between $1 and \1.
$str = aa;It is only an error when strict subs are in effect.Unless you have a variable named aa somewhere, that line will give you an error.
Though having strict on is almost always a good thing.{ no strict 'subs'; my $str = aa; say $str; }
|
|---|