more useful options | |
PerlMonks |
Re^3: How to get this not the usual round robin loopingby hdb (Monsignor) |
on Oct 14, 2015 at 08:47 UTC ( [id://1144828]=note: print w/replies, xml ) | Need Help?? |
Well spotted! Right now I cannot think of something as terse as this for the general solution. The $i&4 basically tells the ups and downs and would need to be replaced by something like int($i/@K)&1 (not tested). The line based on sin will not work for large arrays @K as sin is not linear enough for that... Update: This should work:
In Section
Seekers of Perl Wisdom
|
|