Hi bliako, when trying to concatenate I get the following errors

$bfquery= # this is a string in single quotes so nothing is interpolated 'query?relevance=%28names%20of%20it%2C%20ip%20addresses%20of%20it +%2C%20root%20server%20of%20it%2C%20operating%20systems%20of%20it%2C%2 +0 +last%20report%20time%20of%20it%2C%20agent%20versions%20of%20it%2C%20v +a +lues%20of%20results%20from%20%28BES%20Property%20%22_SupportGroup%22% +29%20of%20it%29%20of%20bes%20computers%20whose%20%28%20name%20of%20it +%20as%20lowercase%20starts%20 +with%20%22' # add to this the value of this perl variable . $bfcomputer # and also this fixed string . '%22%29'; # end of concatenation <?xml version="1.0" encoding="UTF-8"?> <BESAPI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNa +mespaceSchemaLocation="BESAPI.xsd"> <Query Resource="(names of it, ip addresses of it"> <Result></Result> <Error>This expression could not be parsed.</Error> </Query> </BESAPI> sh: +%2C%20root%20server%20of%20it%2C%20operating%20systems%20of%20it% +2C%20: not found sh: +last%20report%20time%20of%20it%2C%20agent%20versions%20of%20it%2C +%20va: not found sh: +lues%20of%20results%20from%20%28BES%20Property%20%22_SupportGroup +%22%: not found sh: +29%20of%20it%29%20of%20bes%20computers%20whose%20%28%20name%20of% +20it: not found sh: +%20as%20lowercase%20starts%20: not found sh: +with%20%22server01%22%29: not found

In reply to Re^4: Help with script recognizing variable in string by TonyNY
in thread Help with script recognizing variable in string by TonyNY

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.