[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 10:23:59 -0400, Mark-Jason Dominus wrote:

> print "\L\uHELLO, \uWORLD\E.\n";

Ouch.

Also:

  $a =3D "\L\uHELLO, WORLD\E"; print "$a\n";
  Hello, world

  $a =3D "\uHELLO, WORLD"; print "\L$a\E\n";
  hello, world

  $a =3D "\LHELLO, WORLD\E"; print "\u$a\n";
  Hello, world

And...

  print "\L\uHELLO, \UWORLD\E\n";
  Hello, WORLD

  print "\L\uHELLO, \lWORLD\E\n";
  Hello, world

but...

  print "\L\uHELLO, \U\lWORLD\E\n";
  syntax error at -e line 1 near "\u\LHELLO, \l\U"

so I'm not sure what's happening.

                                                       /L/e/k/t/u

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

iQA/AwUBN2ewsf4C0a0jUw5YEQKZggCg1W0eDsGoXSk8QM3IkC+cBJCYmxwAn1Hx
Yc8qEdZY5wNuChgLMwtFCAnG
=3D8Qoc
-----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