- or download this
C:\test>p1
perl> sub getIter{ my ($s,$e,$ref)=@_; $e=$#$ref if $e==-1; return sub
+ { $s<=$e ? $ref->[$s++] : (); }}
...
perl> print while $_ = $iter->()
500001500002500003500004500005500006
perl>
- or download this
#! perl -slw
use strict;
...
500003
500004
500005
- or download this
#! perl -slw
use strict;
...
modified
C:\test>
- or download this
#! perl -slw
use strict;
...
some value
C:\test>