in reply to Pearls (not really) of Perl programming
In our team, this is called the famous Triple Chop Technique.my @where = ("item='$item'", "location='$location'", ... ); my $cSql; foreach( @where ) { $cSql .= ' ' . $_ . ' AND'; } chop $cSql; chop $cSql; chop $cSql;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pearls (not really) of Perl programming
by ikegami (Patriarch) on Nov 24, 2004 at 19:37 UTC | |
by dimar (Curate) on Nov 24, 2004 at 22:30 UTC | |
by Mutant (Priest) on Nov 25, 2004 at 09:29 UTC | |
by itub (Priest) on Nov 24, 2004 at 20:02 UTC | |
by bart (Canon) on Nov 25, 2004 at 11:57 UTC | |
by cosimo (Hermit) on Nov 25, 2004 at 12:33 UTC | |
|
Re^2: Pearls (not really) of Perl programming
by Jenda (Abbot) on Nov 30, 2004 at 00:01 UTC |