Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

GhodMode's scratchpad

by GhodMode (Pilgrim)
on Jul 31, 2006 at 08:35 UTC ( #564706=scratchpad: print w/replies, xml ) Need Help??

There are many absolutely brilliant Perl programmers. Some of them will give you not only an answer to your question, but also tell you exactly what's happening in memory on your specific version of your operating system when you run that code... But did you ever just want an answer to your question?

If someone has a small problem in a production environment, the solution is rarely "Re-write the entire program, convert your data, go in as root and install DBMS xyz, use module def, and retrain all of the users, and you might have better performance."

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Lady_Aleena]: Why does grep(/.*$in.*/, @my_modules) work but grep { $_ =~ /.*$in.*/; $_ } @my_modules not work? What did I do wrong in the second?
[tobyink]: Why are you returning $_ n your grep block? You should return a boolean.
[tobyink]: *in your grep block
[tobyink]: You can use grep { $_ =~ /.*$in.*/; } @my_modules but why not stick to grep(/.*$in.*/, @my_modules)? (The latter is faster.)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-05-27 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?