Welcome to the Monastery | |
PerlMonks |
Opinons Pleaseby Jonathan (Curate) |
on Jan 18, 2001 at 18:26 UTC ( [id://52771]=perlquestion: print w/replies, xml ) | Need Help?? |
Jonathan has asked for the wisdom of the Perl Monks concerning the following question:
It was in an item by Dominus (I think) that I found out that the \u and \L operators are interchangeable. i.e Gives The reasoning behind this being that Perl assumes you made a typo and put them in the wrong order. Do the Monks think that this is a good idea or not? Should Perl make this assumption? Are there any other ocasions when Perl will do this sort of thing? Granted it seems a harmless and reasonable thing to do in this case, but I remember having great 'fun' years ago with a 'C' compiler that when it discovered a undeclared variable would try to pattern match an existing one also assuming a typo. Look, I'm not much good at big speeches, and I know I haven't always been an easy guy to get on with. And I know that, given the choice, I probably wouldn't have chosen you as friends. But, I just want to say ... that over the years, ... I have come to regard you ... as ... people ... I met. I'd just better go, OK? Rimmers Farewell speech (one of them) - Red Drawf
Back to
Seekers of Perl Wisdom
|
|