in reply to (code) Re: (2) More efficient munging... (improved lc() uc() snippet)
in thread More efficient munging if infile very large
from perlop:
for the gory details read on there ...Conditional Operator Ternary "?:" is the conditional operator, just as in C. It works mu +ch like an if-then-else. If the argument before the ? is true, the arg +ument before the : is returned, otherwise the argument after the : is returned. For example: printf "I have %d dog%s.\n", $n, ($n == 1) ? '' : "s";
-- Hofmator
In Section
Seekers of Perl Wisdom