Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re3: More efficient munging if infile very large (explain particular syntax?)

by Hofmator (Curate)
on Jul 26, 2001 at 18:35 UTC ( #99992=note: print w/ replies, xml ) Need Help??


in reply to (code) Re: (2) More efficient munging... (improved lc() uc() snippet)
in thread More efficient munging if infile very large

from perlop:

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";
for the gory details read on there ...

-- Hofmator


Comment on Re3: More efficient munging if infile very large (explain particular syntax?)
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://99992]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2015-07-31 03:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls