use strict; use URI::Escape; my $values = join ', ',( 'names of it', 'ip addresses of it', 'root server of it', 'operating systems of it', 'last report time of it', 'agent versions of it', 'values of results from (BES Property "_SupportGroup") of it' ); my $bfcomputer = 'ABC123'; my $who = 'name of it as lowercase starts with "'.$bfcomputer.'"'; my $relevance = "($values) of bes computers whose ( $who)"; my $bfquery = 'query?relevance='.uri_escape($relevance);