Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: DB search results using DBI...execute

by kcott (Bishop)
on Mar 05, 2017 at 06:40 UTC ( #1183689=note: print w/replies, xml ) Need Help??

in reply to DB search results using DBI...execute

G'day jamroll,

Welcome to the Monastery.

In scalar context, @array evaluates to the number of elements. In list context, you'll get the actual elements. Instead of concatenating with '.' (which forces scalar context), you can just embed @array within interpolating quotes.

Here's an example showing all three of those scenarios:

$ perl -E 'my @x = ({}); say ">" . @x . "<"; say ">", @x, "<"; say ">@ +x<"' >1< >HASH(0x7fb6c68040b0)< >HASH(0x7fb6c68040b0)<

— Ken

Replies are listed 'Best First'.
Re^2: DB search results using DBI...execute
by jamroll (Beadle) on Mar 06, 2017 at 06:41 UTC
    ty, Ken. I was directed to that error. thought it was a typo when posting this msg, discovered it was in my code, and that fixed the problem. very much appreciate your input!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2021-12-08 04:15 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (34 votes). Check out past polls.