Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://99992]
[Corion]: Discipulus: Better buy a new PC (well, self-build one from parts) than buy a new car :-)
[choroba]: the boot time on my laptops is more than satisfactory, but the desktop boots in 30+ secs
[choroba]: because of some problems of the wicked with systemd :-(
[Corion]: choroba: Just imagine how bad it must be without systemd ;-D
[choroba]: but I'm not sure it's worth my time...
NodeReaper shudders

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2017-07-27 09:14 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (407 votes). Check out past polls.