[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[Fun With Perl] What does this do?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 17 Jun 1999 12:15:13 -0400, "Bill Jones" <bill@fccj.org>
wrote:

>It should be a syntax error in that the last \E belongs to
>the LAST \U

That still doesn't explain why it fails just by adding a \l that
shouldn't affect \U or \L (but it does, by way of the reordering that
MJD has brought to our attention).

>The FIRST \L lost it's macro closure \E in the reordering...

The perlop manpage says:

 \L  Lowercase till \E
 \U  Uppercase till \E
 \E  End case modification

Nowhere I read that they should be properly nested and that is not
correct to "open" several levels of \L and \U and close them all with
a single \E. In fact,=20

> print "\Ude LOS sus OJOS tan FUERTEMENTE llorando, \LGIRABA la CABEZA \Uy=
 ESTABALOS mirando\E";
> DE LOS SUS OJOS TAN FUERTEMENTE LLORANDO, giraba la cabeza Y ESTABALOS MI=
RANDO

it works till you put a \l or \u next to an inner \U or \L (and, I
suppose, the automatic reordering kicks in).

                                                       /L/e/k/t/u

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.0.2i

iQA/AwUBN2n/Nf4C0a0jUw5YEQIVVwCg2/6V4h6XkUiUZINh0CAgU5buipIAn3an
E+67WJHS5krIn0MBF/p+g7P5
=3DWERd
-----END PGP SIGNATURE-----


=3D=3D=3D=3D Want to unsubscribe from this list? (Don't you love us anymore=
?)
=3D=3D=3D=3D Well, if you insist... Send mail with body "unsubscribe" to
=3D=3D=3D=3D fwp-request@technofile.org