in reply to char. VS char.
just figured to hit the problem where you are already working on it, rather than going with tr/// and having you work out the complex array solutions for your next project (which i did as a newbie)my %hash = ( A => W, B => R, C => T, ); my $letter = 'A'; print "Letter : $letter\n"; ## prints "Letter : A" print "Letter : $hash{$letter}\n"; ## prints "Letter : W"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: char. VS char.
by marcus (Scribe) on Aug 30, 2001 at 16:32 UTC |