Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Sliding window

by choroba (Archbishop)
on Jan 27, 2012 at 14:22 UTC ( #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? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-01-25 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (68 votes). Check out past polls.

    Notices?