The stupid question is the question not asked | |
PerlMonks |
Re: I cannot execute a url request through Dancerby kcott (Archbishop) |
on Sep 23, 2022 at 02:47 UTC ( [id://11147069]=note: print w/replies, xml ) | Need Help?? |
G'day logangha, In this code:
Everything returned by processRequest() will go to @arrRes; while @arrNoRes will remain empty. From here, things will start to go wrong: for instance, the condition "@arrNoRes > 0" will always be false; and so on from there. I suggest you rewrite processRequest() to return two arrayrefs, instead of two arrays. Then make other changes from there as appropriate; e.g. "@$arrNoRes > 0". — Ken
In Section
Seekers of Perl Wisdom
|
|