Can someone please explain the code below to me. This behavior has been around for some time (tested on 5.8.5, 5.8.8, 5.10.1, 5.12.2), so should there be a reason for this?
$ perl -M5.012 -E '$aa=2'
Global symbol "$aa" requires explicit package name at -e line 1.
$ perl -M5.012 -E '$a=2'
Thank.
source
share