OK here is the sample of data as it looks in the DAT file:
PC025 A A TELCO LEFT HAND SIDE J0007 RJ45 EARLESS N/A N/A N/A N/A 50 WAY MOUNT CONNECTOR FEMALE BT009 PC026 A A TELCO RIGHT HAND SIDE J0007 RJ45 EARLESS N/A N/A N/A N/A 50 WAY MOUNT CONNECTOR FEMALE BT009 PC029 A A TELCO LEFT HAND SIDE J0007 RJ45 EARLESS N/A N/A N/A N/A 50 WAY MOUNT CONNECTOR MALE BT010
And this is what I have come up with in the form of code...please don't laugh...hehe!!!:
I know it don't look much but the books I have referenced don't seem to help, and there is noone else I know with any perl knowledge.open (DATFILE, "prod.dat") or die "I couldn't get at log.txt"; for $line (<DATFILE>) { print "$line <br>"; } close DATFILE;
2001-11-06 Edit by Corion : Changed formatting to use opening and closing CODE tags
In reply to Re: Re: Confused Beginner: searching and displaying information from a dat file
by Anonymous Monk
in thread Confused Beginner: searching and displaying information from a dat file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |