Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^9: Getting an unknown error (thats just the way it is)by Anonymous Monk |
on Apr 25, 2015 at 01:10 UTC ( [id://1124640]=note: print w/replies, xml ) | Need Help?? |
...It certainly aliases $1 and this is certainly not a good idea, but matching is not broken. (Please see example code below.) ... This is just the way aliasing works this is just the way something works is the weakest of argument ... AnomalousMonk , its a bug, warnings doesn't warn It never occurred to me to try using $1 for anything other than retrieving regex matches It never even occurred to me to try $1='something' but you can't do that This is not a feature, its just an oversight warnings should help the idiot who uses $1 for something other than retrieving regex matches documentation updates are not any kind of solution
In Section
Seekers of Perl Wisdom
|
|