in reply to (jeffa) 3Re: Is for(@$array_ref) construct optimized? YES!
in thread Is for(@$array_ref) construct optimized? YES!
Here I tried to compare 5.6.0 (I called it from 5.6.0 dir which is d:\perl56\bin in my computer) and 5.6.1 (it's in my $PATH)D:\Perl56\bin>perl -MO=Deparse -we "$x=[];for($i=0;$i<=$#x;$i++){}" $x = []; $i = 0; while ($i <= $#x) { (); } continue { ++$i } -e syntax OK D:\>perl -MO=Deparse -we "$x=[];for($i=0;$i<=$#x;$i++){}" $x = []; for ($i = 0; $i <= $#x; ++$i) { (); } -e syntax OK
update I did update to call a snippet without compile errors; but explanation of results before and after update are same
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Is for(@$array_ref) construct optimized? YES!
by Aristotle (Chancellor) on Jun 16, 2002 at 21:04 UTC | |
by Weasel (Sexton) on Jun 16, 2002 at 21:12 UTC | |
by Elian (Parson) on Jun 16, 2002 at 21:30 UTC | |
by Weasel (Sexton) on Jun 16, 2002 at 21:43 UTC | |
by Aristotle (Chancellor) on Jun 16, 2002 at 21:30 UTC |