I have a flat file I want to pull certain fields from the text and assign them to a variable I would like to know a strait forward method. I had thought to use split and substr? or load the line into an array the file is space delimited. So the field after HOST field6 I need to assign field seven as a variable and so on as I go across the line "$_" example
orclNetDescString DESCRIPTION ADDRESS PROTOCOL TCP HOST doa.sdasd.sdf.sdf. PORT 1521 CONNECT_DATA SID devdb GLOBAL_NAME devdb.discoveringmorclSid devdb
In reply to Variable assignments flat file by sfrisch@mt.gov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |