From: Sebastian Hungerecker Date: 2008-06-15T03:53:39+09:00 Subject: Re: what is the error in this program Manish Kutaula wrote: > while($_!="n") >   index=0; >   [...] >  index+=1 >  [...] >  end You set index to 0 at every iteration of the loop. HTH, Sebastian -- NP: Die Apokalyptischen Reiter - Die Sonne Scheint Jabber: sepp2k@jabber.org ICQ: 205544826