- or download this
my @indexes = qw (3 0 4 5 6 7);
open INDATA,"< my.dat" or die "my.dat: $!";
...
sub get_indexes {
return @indexes;
}
- or download this
use IO::File;
...
# call the function:
print process( "my.dat", qw( 3 0 4 5 6 7 ) );
- or download this
use IO::File;
...
# later on, call the closure:
print $processor->();