From: Paul Johnson <p...@pjcj.net> > You need a mixture of the two approaches: map to prepend "not in:" and > join to join them. > > my $query = join " and ", map "not in:$_", @folders;
@folders = ('one', 'two'); my $query = "not in:" . join( " and not in:", @folders); print $query; will be quicker. no need to map and join just because you need some text even before the first value. Jenda ===== je...@krynicky.cz === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/