You are reading in lines from a file named ship.cfg and you are not applying any particular attention to what is being read in. In perlspeak, the lines are "tainted". They could contain anything, usually benign, but possibly malicious.

Ordinarily, tainted data doesn't matter at all, as long as you content yourself to operations that don't have an effect outside the perl interpreter. But as soon as you reach out and start interacting with the system, whether it be disk, network or otherwise, tainting is of utmost importance.

The problem is that you are asking perl to use that unclean information read from ship.cfg to connect to a socket. And perl has a problem with that. It can't know whether what you are doing is benign, or whether you're trying to tie up a database listener or something crucial to your infrastructure. So until you untaint your data, it's not going to let you. Read up on perl security for information on untainting.

- another intruder with the mooring of the heart of the Perl


In reply to Re: using -T doesn't work (when attempting I/O) by grinder
in thread using -T doesn't work by tcf03

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.