in reply to Joining, but skipping the last element

I'm not sure I understand the problem. What's wrong with join?
my $query = join " AND ", map { "'$_' = \"$params{$_}\"" } grep $param +s{$_}, keys %params;


ar0n ]

Replies are listed 'Best First'.
Re: (ar0n) Re: Joining, but skipping the last element
by the_slycer (Chaplain) on Jun 29, 2001 at 19:26 UTC
    Ahh, when used like that, absolutely nothing :-)
    I was using it in the loop like $query=join "AND" , "'$_'=\"$params{$_}\"" , $query Fairly obvious where my error was there..