Works like a charm, thank you. How do I upvote this answer, sorry I am a newbie to perlmonks :)
Also, why do we initialize, $current_index as -1?
In reply to Re^2: Splitting a large file into smaller files according to indexes
by cryptoperl
in thread Splitting a large file into smaller files according to indexes
by cryptoperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |