in reply to variable list assignment
but you'll better not use this, because get_bytes will be invoked $num times! And this is really ineffective.$record[$_]->{bytes} = [get_bytes($num)]->[$_] for 0..$num;
addition:
but your three lines of code next to @tmp assignment better written as:
$record[$_]->{bytes} = $tmp[$_] for 0..$#tmp;
Courage, the Cowardly Dog
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: variable list assignment
by arc_of_descent (Hermit) on Aug 03, 2002 at 11:11 UTC | |
by Courage (Parson) on Aug 03, 2002 at 11:17 UTC |