Dandello has asked for the wisdom of the Perl Monks concerning the following question:
I've been working with someone else's code and came across this to generate a mySQL command:
mysql_process( 0, 'do', qq~DELETE FROM `$db_table{$DBfile}[0]` WHERE `$db_table{$DBfile}[1]`="~ . join( '" OR `$db_table{$DBfile}[1]`="', @where ) . q~"~ );Now, my gut tells me the section of code inside the join for the delimiter should be interpolated not a literal. But I'd like a second or third opinion.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Join question
by JavaFan (Canon) on May 02, 2012 at 22:36 UTC | |
by Dandello (Monk) on May 02, 2012 at 23:16 UTC | |
Re: Join question
by sauoq (Abbot) on May 02, 2012 at 22:16 UTC | |
Re: Join question
by bobf (Monsignor) on May 03, 2012 at 01:58 UTC | |
by Dandello (Monk) on May 03, 2012 at 02:59 UTC | |
Re: Join question
by Dandello (Monk) on May 02, 2012 at 22:22 UTC | |
by sauoq (Abbot) on May 02, 2012 at 22:24 UTC | |
by Dandello (Monk) on May 02, 2012 at 22:32 UTC |
Back to
Seekers of Perl Wisdom