Serge314 has asked for the wisdom of the Perl Monks concerning the following question:
Does the operators \L \l \U and \u have right to left associativity, or vice versa?
I think, the operators must have right to left associativity as =.
Have the operators such property as a priority?
print "\u\LdD\n"; # Dd It seems, first works \L, then \u. Good. print "\u\la\n"; # A First \l, then \u. Good! print "\l\ua\n"; # a First \u, then \l. Good!! print "\L\udD\n"; # Dd It seems, first works \L, then \u, hm... print "\LdD\udD\n"; # dddd It seems, first works \u, then \L, hmmm... print "\L\Ua\n"; # Syntax error print "\U\La\n"; # Syntax error print "\L\La\n"; # Syntax error print "\u\la\n"; # A All right print "\u\ua\n"; # A All right
Surprized? I'm again...
How we should understand work of these operators?
Should I submit a bug report? :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I'm surprized with \L, \l, \U and \u, are you too? :-)
by Anonymous Monk on Feb 21, 2011 at 09:20 UTC | |
by Serge314 (Acolyte) on Feb 21, 2011 at 15:14 UTC | |
|
Re: I'm surprized with \L, \l, \U and \u, are you too? :-)
by ikegami (Patriarch) on Feb 21, 2011 at 08:58 UTC | |
by Anonymous Monk on Feb 21, 2011 at 09:46 UTC | |
by ikegami (Patriarch) on Feb 21, 2011 at 10:19 UTC | |
by Anonymous Monk on Feb 21, 2011 at 10:38 UTC | |
by ikegami (Patriarch) on Feb 21, 2011 at 19:42 UTC | |
| |
by Anonymous Monk on Feb 21, 2011 at 09:54 UTC |