JohnMcLernon_77 Member Posts: 11 From: Northern Ireland Registered: 05-31-2004 |
Hi there. I'm trying to read info from a text file & store it in an array. Each bit of info is seperated by a ",". I tried using the split function to seperate them but will not work. When I go to print out the array, it just prints out my file location as a string rather than printing the file info. Writing to the file is fine, just can't read from it. Any help would be great. John
------------------ [This message has been edited by JohnMcLernon_77 (edited November 28, 2004).] |
|||||
raymondholmes Junior Member Posts: 2 From: Kansas City, MO Registered: 12-01-2004 |
You open the file with the handle,
but then try to read from the file name. Try
and then parse, or even
You might even be able to pull off
I'm not sure. I did full time Perl development for 2 years, and I still alswys have to go back to some references for some things like filehandling. This is the best tutorial/reference Ive found for perl. |