Hello

This is my way of doing it, but perhaps it is too longwinded: 

If the line is contained in a text file, you read the file into an array.
Then each element of the array consists of a single line. Search for the
line and get its index, which corresponds to the line number -1.

Regards, Marion.




> -----Original Message-----
> From: COLLINEAU Franck FTRD/DMI/TAM
> [mailto:[EMAIL PROTECTED]]
> Sent: 02 August 2001 12:57
> To: Perl (E-mail)
> Subject: number of line
> 
> 
> Hi!
> 
> I would like to store the number of a line whitch corresponds 
> to a string.
> 
> How can i do ?
> 
> Thanks
> 
> FRanck 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
  • number of line COLLINEAU Franck FTRD/DMI/TAM
    • Fennelly, Marion [ETHGB]

Reply via email to