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

Re: DB search results using DBI...execute

by kcott (Archbishop)
on Mar 05, 2017 at 06:40 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found