in reply to Re: text file database - Objects?
in thread text file database - Objects?

Minor correction: That's not an anonymous hash. Sorry about that.

Replies are listed 'Best First'.
Re: Re: Re: text file database - Objects?
by shibby (Initiate) on Jun 05, 2003 at 08:13 UTC
    Hello again,

    Sorry for my delayed reply, I've been very busy.. Thank you for your replies, they gave me ideas and I have solved my problem!
    Pseudo code

    for($i = 0; $i < scalar($#file +1); $i++) { foreach ($file[$i]) { # <-- this is what solves it! chomp; ($stuff, $more_stuff) = split(/\|/); # ... } }

    I didn't really need to create a new object for each data entry.. although it would have been a nice experiment, I found an easier way of doing what I wanted.
    Thanks very much for your support, I appreciate it.

    ~Shibby