P
Patrick Flaherty
Hi,
Started using @{[times]} recently for measuring run (execution) time. (I'm
aware that there's also a Benchmark module).
To figure out what was going on here, I first looked up times in perlvar - not
there. Then thought to try perlfunc. Ah.
So what's the magic, in particular in {[...]}, that converts the return array
into an array-on-the-fly?
I understand that @ refers to arrays and [] also. But what still has me a
little mystified is how, evaluating from in-to-out, when you go from [ to { and
then @, you start at a function and its return value (an array [or list?]) and
end up where you do.
Looked this up in the Nutshell _Perl Programming_ but didn't find an answer.
thanx.
pat
Started using @{[times]} recently for measuring run (execution) time. (I'm
aware that there's also a Benchmark module).
To figure out what was going on here, I first looked up times in perlvar - not
there. Then thought to try perlfunc. Ah.
So what's the magic, in particular in {[...]}, that converts the return array
into an array-on-the-fly?
I understand that @ refers to arrays and [] also. But what still has me a
little mystified is how, evaluating from in-to-out, when you go from [ to { and
then @, you start at a function and its return value (an array [or list?]) and
end up where you do.
Looked this up in the Nutshell _Perl Programming_ but didn't find an answer.
thanx.
pat