Because the locations of sub.pl and variable.pl are not being found by Perl. When you require a file, Perl looks inside the @INC array and tries to find files in the only 2 paths it has: C:/indigoperl/lib and C:/indigoperl/site/lib. If i were you, i would find the full path to the directory that contains those two files and add the following line BEFORE you require those two files:
use lib '/path/to/my/files';
Or, if that doesn't work:
push @INC, '/path/to/my/files';
You will have to replace that string with the proper path, of course. Please don't ask us what that proper path is, you will have to figure this one out. (hint: it's the full path of the folder that contains those two files that you want in include.)

And please, dude. The word is why, not whay. I told you this once before. I get the feeling that you aren't listening ...

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to 5Re: Problem with my .pl script. Helpppp! by jeffa
in thread Problem with my .pl script. Helpppp! 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.