Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: map DBI results

by runrig (Abbot)
on Dec 16, 2002 at 19:12 UTC ( [id://220300]=note: print w/replies, xml ) Need Help??


in reply to map DBI results

As already pointed out, one problem is your choice of s/// delimiter, but I'd also leave out the map:
while (my @row = $sth->fetchrow_array) { s|$term|<i>$term</i>| for @row; ... }

Replies are listed 'Best First'.
Re^2: map DBI results
by Aristotle (Chancellor) on Dec 16, 2002 at 20:08 UTC
    s|$term|<i>$term</i>|
    Ugh, please don't advise people to use pattern metacharacters such as pipes as delimiters. You're opening a large can of worms. It may be fine for obfuscation, but is only inviting pain anywhere else.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found