Hi,
I'd like to know why you asked that. Did you run against a problem for "too many variables"? If so it could depends on your system imposing a limit on either the length of a line (see the update in liz answer) or some limit in the size of the parameter list for subs in the implementation of perl.

Remember that

use vars qw($foo @bar %foobar);

is (almost) equivalent to

require vars; vars->import('$foo','@bar','%foobar');

While this implies that a limit on the size of the parameter list (or the memory space occupied bu such a list) would impact on the 'number of variables that could be used in a use vars statement', this also implies that, should the problem arise, you could split your use vars like:

use vars '$foo'; use vars '@bar'; use vars '%foobar';

as require does not reload an already loaded module, but import is still called each time.

Hoping this helps.


Leo TheHobbit

In reply to Re: STRICT question by TheHobbit
in thread STRICT question by webstudioro

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.