in reply to Re: Passing variables
in thread Passing variables

My naive guess is that the overhead is in list expansion. I.e. in #1, you must go from qw(file.txt (1..100000)) to qw(file.txt 1..100000). This doesn't happen in #2 at all.

-- Frag.