Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Splitting \0

by japhy (Canon)
on Jun 01, 2007 at 11:26 UTC ( #618702=note: print w/replies, xml ) Need Help??


in reply to Splitting \0

I think you've got your '@' and '$' in the wrong places. join() returns a SCALAR, split() returns a LIST (or a scalar, but I think you want the list here).
my @column_names = qw( chk ); # I assume you have more? my $columns_joined = join "," => map { $db->quote($fd{$_}) } grep { exists $fd{$_} } @column_names; my @column_values = split /\0/, $columns_joined;

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^2: Splitting \0
by Quicksilver (Scribe) on Jun 01, 2007 at 12:14 UTC
    Hi Japhy, No the SELECT is still returning 1 or nothing.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://618702]
help
Chatterbox?
[LanX]: the local newspaper deletetd an image form 2009 ... ts
[marinersk]: It's not even a decade old. What were they thinking?
LanX angry
[LanX]: will delete Darmstadt now

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2017-05-29 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?