Re: How to Post/How to Respond (WAS: A string & a list)

2006-06-30 Thread Mr. Shawn H. Corey
On Fri, 2006-30-06 at 18:52 +0100, Rob Dixon wrote: > Well maybe Randal's right, but I reckon homework counts as a Perl beginner's > problem, it's just that the form of the response should have less of a 'lets > get > this thing going' slant. How to Respond: Whether this is homework or not is

Re: A string & a list

2006-06-30 Thread Rob Dixon
(Randal L. Schwartz) wrote: "Monomachus" == "Monomachus" <[EMAIL PROTECTED]> writes: Monomachus> A problem in Perl Monomachus> You have a string & a list And it looks like a homework problem. Monomachus> And one more thing could u show me variants wi

Re: A string & a list

2006-06-30 Thread Rob Dixon
Monomachus wrote: A problem in Perl You have a string & a list For ex.: $s = "ADbDCdBabc"; @N=("A","D","C") You should exclude those elements from the string : first by 1 element, after that by 2 & by 3 ... (If @N would have 5 elements and by 4

Re: A string & a list

2006-06-30 Thread Randal L. Schwartz
>>>>> "Monomachus" == "Monomachus" <[EMAIL PROTECTED]> writes: Monomachus> A problem in Perl Monomachus> You have a string & a list And it looks like a homework problem. Monomachus> And one more thing could u show me variants without u

Re: A string & a list

2006-06-30 Thread Mr. Shawn H. Corey
On Fri, 2006-30-06 at 12:59 +, Monomachus wrote: > And one more thing could u show me variants without using RegEx See `perldoc -f index` -- __END__ Just my 0.0002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Ar

A string & a list

2006-06-30 Thread Monomachus
A problem in Perl You have a string & a list For ex.: $s = "ADbDCdBabc"; @N=("A","D","C") You should exclude those elements from the string : first by 1 element, after that by 2 & by 3 ... (If @N would have 5 elements and by 4 and by 5([$