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

Hi to all, i have been making a program to get just the text content and the links from a website. You can see it here

Loop will not save into the array

The thing is i have made this program save the links and the contents in arrays, but that was mostly to see whether i would be able to make this work. It partially does, as it shows in that post but i was wondering if it would be easy to change some things in it and save the contents and the links in a database. Do you think the problems i encounter when trying to save the links and the content in arrays would be solved when i tried to save them in a databse? I was thinking of using mySQL. Any better ideas or is this the best one?Thanks

Edit by castaway - linkified link and retitled from 'Some advise needed'

  • Comment on Storing links and content in a database

Replies are listed 'Best First'.
Re: Storing links and content in a database
by castaway (Parson) on Aug 22, 2005 at 13:27 UTC
    What problems are you encountering when saving your data in arrays? It should be just as possible to do that as use a database. Do you want your data to be persistent? (i.e. continue to exist after the script has finished), if not, I see no reason to use a database.

    C.

      It gives me an "Use of uninitialized value" error. When it goes into the loop for some reason it wont write that information in the array. I want my data to be persistent thats why i eventually want to use a database. Thanks castaway
Re: Storing links and content in a database
by kprasanna_79 (Hermit) on Aug 22, 2005 at 13:09 UTC