Nothing but a newline is printed here (FreeBSD 12.1-STABLE r358002, perl 5.30.3, /bin/sh & zsh) for ...

$ perl -T -MDate::Manip::DM6 -E 'say $Date::Manip::VERSION'

I get the same output -- 6.81 -- for both of ...

$ DATE_MANIP=DM5 perl -T -MDate::Manip -E 'say $Date::Manip::VERSION' $ DATE_MANIP=DM6 perl -T -MDate::Manip -E 'say $Date::Manip::VERSION'

... without any error messages. For me $ENV{ENV} is undefined in both shells; I have not explicitly (un)set it myself.

After explicitly making ENV an environment variable for the exercise, error messages are certainly reproducible. So something is stuffing ENV for you and possibly for OP. Wait ...

Ah. I see I did set ENV to shell configuration file path in long unused profile for Bourne shell (sh) & in bash{rc,_profile} for bash.


In reply to Re^2: Date::Manip and taint mode by parv
in thread Date::Manip and taint mode by byfr81

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.