Ok, How to access an array element rewritten
barrycarlyon
created: 2006-04-04 10:19:22
Hello Esteemed Colleagues,

What I want to do is,

Retrieve data from a database.
put this into @currentpoll
Currentpoll returns the following array

idfieldcontentdate
11currentpollTest Poll2006-03-23

There is other data in this table, however i retrieve doing the following search
my @currentpoll = LSRfm::Database::Data->search(field => 'currentpoll');

Hence there is only one row.

Now I want to put the content column into a "memory box" called @search, so in this case @seacrh would be Test Poll,
now i want to take @search and use its value to search a different database in a similar fashion to;

my @pollresults = LSRfm::Database::PollResults->search(field => @search);

But I all ready know how to do that

Hopefully that should have cleared up the questions from Here

The idea with this being I can change the currentpoll Content value, without having to alter the perl script.

Yours

Barry Carlyon

Re: Ok, How to access an array element rewritten
created: 2006-04-04 11:02:26
barrycarlyon,

Please read the PerlMonks FAQ and node 172086.
This should have been a node within your previous question, rather than a new thread.

Cheers

Martin

perlmonks.org content © perlmonks.org and barrycarlyon, marto

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03