Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: DBI reports too many bind variables

by Juerd (Abbot)
on May 24, 2005 at 17:55 UTC ( [id://460109]=note: print w/replies, xml ) Need Help??


in reply to Re: DBI reports too many bind variables
in thread DBI reports too many bind variables

my @player_rec = split '\|';

Although that fixes the problem, it's still bad style to write a regex as a string. Use /\|/ instead of '\|' here. Note that split / / and split ' ' in fact ARE different!

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Replies are listed 'Best First'.
Re^3: DBI reports too many bind variables
by davidrw (Prior) on May 24, 2005 at 18:06 UTC
    ah. yes -- thanks for explicitly noting that (i actually had /\|/ in my head but that part got lost somewhere between brain and fingertips..) -- it definitely is an important disctinction (if anyone reading this doesn't know the difference please read preldoc -f split carefully--it's well worth the read).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-19 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found