#!/usr/bin/perl ###################################### # Check installed CPAN modules for use of "use vars" # # Because Perl 5.28.0 removes discouraged "use vars" # # https://perlmonks.org/index.pl?node_id=1217408 # ######################################################

I think you are misunderstanding the perldelta entry. It says (emphasis mine):

The usage of use vars has been discouraged since the introduction of our in Perl 5.6.0. Where possible the usage of this pragma has now been removed from the Perl source code.

vars is still very much present, just its usage by the Perl core has been removed. Note that the change is not listed in the "Incompatible Changes" section, and "Updated Modules and Pragmata" actually says "vars has been upgraded from version 1.03 to 1.04." See also:

perl5/ $ git log --oneline --grep="use vars" v5.26.0..v5.28.0
5069e57764 Update Filter::Util::Call to CPAN version 1.58
1218f5ba79 Remove use vars from B::Deparse
bc60657c80 configpm: fix duplicate 'our' declaration
d8f3f638c2 [MERGE] Remove unnecessary use of 'use vars'
9b78f2106b Document the removal of use vars from sources
e64a0c479a Replace multiple 'use vars' by 'our' in regen.
83461ff883 Replace multiple 'use vars' by 'our' in t
3d3a0a8a5e Replace multiple 'use vars' by 'our' in utils
fd55ca4fb1 Replace multiple 'use vars' by 'our' in ext
cc01160e81 Replace multiple 'use vars' by 'our' in lib
1a58b39af8 Replace multiple 'use vars' by 'our' in dist
94d11354c7 fix a benchmarks sprintf entry


In reply to Re: Check your CPAN modules for use vars by haukex
in thread Check your CPAN modules for use vars by usemodperl

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.