Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Sliding window

by choroba (Cardinal)
on Jan 27, 2012 at 14:22 UTC ( [id://950377]=note: print w/replies, xml ) Need Help??


in reply to Sliding window

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://950377]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found