sfryer said: > 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.
Wow! That's your only question from that code? uc $name returns an uppercased version of $name. perldoc -f uc -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]