-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm reading perldoc perlref right now and under the Function Templates section, I've come across something that's got me stumped. The code in question is as follows...
@colors = qw(red blue green yellow orange purple violet); for my $name (@colors) { no strict 'refs'; # allow symbol table manipulation *$name = *{uc $name} = sub { "<FONT COLOR='$name'>@_</FONT>" }; } What I'd like to know is what is the purpose/meaning of the "uc" in *{uc $name} on the second last line? I couldn't locate an explanation for it anywhere. Thanks in advance. :) - -- ===================== Shaun Fryer ===================== http://sourcery.ca/ ph: 905-529-0591 ===================== Science is like sex: occasionally something useful comes out of it, but that's not why we do it. - -: Richard Feynmann -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (OpenBSD) Comment: public key http://sourcery.ca/sfryer_gpg.txt iD8DBQE/XVSvvN1tsN5oC50RAgvUAJ9ngmSnha0CwKYoEeOtBO9WLm50AwCff1lb lAD3WT0xrari/FTeGFz0g78= =HIfJ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]