Your question and your error message don't match.
require loads a module if it hasn't already been loaded. It doesn't execute scripts. To launch a script (or any other program), you use
system, backticks, open '-|', open '|-', or ... Give us more details, please.
system('script.pl', $arg1, $arg2);
system('script.pl', @args);
system($^X, 'script.pl', @args);
In case you actually do have a module, the whole concept of arguments doesn't make sense with modules because modules can be used by multiple other modules in the same process. Your best alternative to passing arguments to a module is to make a class from the module and pass the arguments to the constructor.
use Parser;
my $parser = Parser->new(@args);
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.