in reply to string manipulation

ok guys. thank you all for your replies and you time. i guess 4 in 4 answers being the same, that must really mean something. ;) thanks again :)

Replies are listed 'Best First'.
Re^2: string manipulation
by LanX (Saint) on May 18, 2013 at 19:39 UTC
    Take a look at pack it has a count pattern feature. (already discussed here, see archives)

    Though not sure if it meets your requirements.

    If it does it will for sure be the fastest approach.

    Cheers Rolf

    ( addicted to the Perl Programming Language)