in reply to Silly question about function args

Passing args to a function is unlikely to be a significant bottleneck as noted extensively. To optimise code speed you need to attack the bottlenecks. To do this you need to know where they are. This are quite often not where you think they are (in my experience!).

Devel::Dprof is the usual tool of choice for code speed profiling. Here is an example Devel::Dprof is your friend with extensive discussion.

If you are reading large files you can get several orders of magnitude speed increase by reading in blocks of data rather than single lines. See Re: Performance Question

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print