in reply to How do I find the particular field in a File?

your perl script will need to know the structure of your data. how many fields? what are their names? what is the field seperator? what is the record seperator? once these things are defined, you can read in your data, and process it correctly.

see split for details of splitting fields. also, see perldata for explainations of scalars and arrays.

  • Comment on Re: How do I find the particular field in a File?

Replies are listed 'Best First'.
Re: Answer: How do I find the particular field in a File?
by Anonymous Monk on Apr 28, 2007 at 01:27 UTC
    Is the information in the file stored in a pattern as in tab spaces etc? Also are you looking for a particular value or a value in a particular row. If it is a value you can use the matching like
    ~ m/word pattern/
    If you know the row then you can sort through the array
    $array[row]
    Shashidhar Iddamsetty