http://www.perlmonks.org?node_id=117487

basicdez has asked for the wisdom of the Perl Monks concerning the following question:

I want to read in a list of data, that looks similar to the following...
"DESTINATION" "localhost" "HDR" "R-ITEC" "" "ITDEC" "DEC" "PENDING" 08/29/01 18864 "EOS" "EOS"
To read this in with read and seperate out the following fields so that in perl code, I could assign the following values...
$Destination = "localhost" $Program_Type = "R-ITEC" $Program_Name = "" $Incoming_Foo = "ITDEC" $Decision = "PENDING" $Date_Applied = "08/29/01" $Appl_Number = "18864"
Please help me if you know what I should do. I am currently under an understanding that I can do something of the following...
while(<$cliendft>) { last if /^EOS$/; } close ($clientfd);
to read in the data stream, but I do not know how to seperate these fields into where I would want them to go to complete this process. Any help you could give me would be greatly appreciated. peace dez L