in reply to Sliding window
This can help you to implement the sliding window:
Update: Using while instead of for to simplify getting the pairs.$s = "abcdef"; print "$1,$2\n" while $s =~ /(.)(?=.(.))/g;
In Section
Seekers of Perl Wisdom