Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: More efficient munging if infile very large

by MZSanford (Curate)
on Jul 26, 2001 at 15:34 UTC ( [id://99946]=note: print w/replies, xml ) Need Help??


in reply to More efficient munging if infile very large

I am unclear about the $munged() bit of code in your description. &$munged() would work, were $munged a code reference. As for the effeciency of your approach, i would run it all through Benchmark, for any other opinions would be but opinions. It maybe quicker to do something like
if ($uclc eq 'lc') { ... for loop with lc } elsif ($uclc eq 'uc') { ... for loop with uc } else { die "invalid arg"; }
it may be slightly fatser, but check benchmark
Thus spake the Master Programmer:
"When you have learned to snatch the error code from the trap frame, it will be time for you to leave."
-- The Tao of Programming

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-28 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found