For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > July 2005 > Re: How to take acton upon a pattern of nth occurrence?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How to take acton upon a pattern of nth occurrence?
David Serrano (Hue-Bond)

2005-07-28, 5:01 pm

A. Sinan Unur, miƩ20050706@14:29:31(CEST):
>
> my $r = substr $s, 0, index $s, 'AAAAAAAAAA';


As always, TIMTOWTDI:

my ($r) = split /A{10}/, $s;


--
David Serrano
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com