Drugs is a perl module that makes existing perl scripts more interesting.
I'd be interested if anyone else finds this funny...
"This is your script, this is your script on drugs" <g>
Update: Modifed to be less C-like (Thanks, Aristotle).Update: Fixed sprintf thing.

In fact the code is very C-ish and can be cleaned up quite significantly, and the current form both violates strict and produces warnings. A bit of rearranging also makes it much easier to grok. Here's a cleaned up version:

As for it being C-like, that is very strange. Perl is my first (programming) language and I just started looking at C... I also really like map {} (and grep {}), but I thought for() was faster than map for some reason.

It can be. That very much depends on what you're trying to do. Note I didn't pick map for efficiency here, more because it pulls the code together with fewer temporary variables at least using my overall style (and fewer of those do tend to lead to more efficiency).

Selectively modifying elements of an array inplace, esp when you only need to touch few, most likely is best left to a for loop. Touching each or almost each and every element it can be a toss-up. When you are building a new array as you iterate over another, map is very likely the clear winner.

Darn. Noone called me on the sprintf @_ mistake. Lucky that I ran across this node again while looking for another; fixed now. It's still untested code though so YMMV. If you find any more errors, please let me know.

[Your Mother]:They get almost everything wrong on every level. I think they create and restrict the market and fundamentally misunderstand audiences.

[Your Mother]:Consider how long, for example, superhero movies were kept at bay because they weren't commercially viable. They always were, just Hollywood couldn't see it or understand how to make one because there is no management talent in the town.

[LanX]:Erich von Strohheim built his career on beeing the most hated guy (The man you love to hate)

[Your Mother]:You see these amazing set, costumes, performances, etc, etc, etc all ruined by production and script decisions from the top down.