Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: I cannot execute a url request through Dancer

by kcott (Archbishop)
on Sep 23, 2022 at 02:47 UTC ( [id://11147069]=note: print w/replies, xml ) Need Help??


in reply to I cannot execute a url request through Dancer

G'day logangha,

In this code:

my (@arrRes, @arrNoRes) = processRequest(params->{reference});

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147069]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-03-28 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found