[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 Wed, 16 Jun 1999 13:05:37 -0400, Bill Jones <bill@fccj.org> wrote:
>You need a macro closure \E before the next \U, re -
>
>  print "\L\uHELLO, \E\U\lWORLD\E\n";
>

I would be more convinced if that wouldn't work:

  print "\LHELLO, \Uworld\E\n";
  hello, WORLD

but it does. *Just* adding a \l next to \U causes a syntax error:

  print "\LHELLO, \l\Uworld\E\n";
  syntax error at -e line 1, near "\LHELLO, \l\U"
  Execution of -e aborted due to compilation errors.

but if it is not contiguous to it, like in:

  print "\LHELLO, \Uw\l\ORLD\E\n";
  hello, WORLD

it doesn't signal a syntax error (though the \l doesn't work, either).
But obviously is not a matter of using \E before using a new \U or \L
(and in fact documentation doesn't imply that it is needed, as far as
I understand it).

                                                       /L/e/k/t/u

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

iQA/AwUBN2i3BP4C0a0jUw5YEQK7DwCfdWTu3+FHplxlOnQfHGftwGFHkicAnj14
wGfv3bGwAA2H0NCuMG+H+r9g
=3D1OA4
-----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