I think this does what you want:
#!/usr/bin/perl -w use strict; my %parms; $parms{"Login Name+"}="AUSER"; $parms{"Submitted By"}=""; $parms{"Summary"}="test test"; my $str = join ' AND ', map { qq/'$_'="$parms{$_}"/ } grep { $parms{$_} } keys %parms; print $str;
Update: Just too slow there :(
--Perl Training in the UK <http://www.iterative-software.com>
In reply to Re: Joining, but skipping the last element
by davorg
in thread Joining, but skipping the last element
by the_slycer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |