For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > May 2006 > flat file into and array / hash









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author flat file into and array / hash
dheerey

2006-05-03, 10:32 am

Hello everyone, hope someone can help. I have a flat file.txt with the follo
wing data

filename::y::maybe::n
filename2::y::maybe::n
filename3::n::always::y
filename4::n::sometimes::y

I need to read this file into a hash / array so that I can use each seperate
value

At the moment i can only get it to print out one full element i.e filename::
y::maybe::n not the individual sections of the array i.e. y

All help appreciated

Declan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com