The string in eval expands to the commented line above it.my $r = "SomEThingWithMIXEDRegiSter"; #$r =~ tr/[A-Z][a-z]/UUUUUUUUUUUUUUUUUUUUUUUUUULLLLLLLLLLLLLLLLLLLLLLL +LLL/; eval( '$r =~ tr/[A-Z][a-z]/'.('U' x 26).('L' x 26).'/' ); print $r;
In reply to Re: change [A-Z] to U, [a-z] to L with one regex?
by hdb
in thread change [A-Z] to U, [a-z] to L with one regex?
by Doctrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |