you seem to be talking about a
cpan-module called "
use" !
(which is a very "peculiar" name for a module, because we have a built-in called use )
* SYNOPSIS
# Use several modules in command line:
% perl -Muse=CGI,DBI,PPI -e '...'
# Import several modules at once
use use qw[ strict warnings methods invoker ];
# Pass options as array refs
use use 'strict', 'warnings', 'HTTP::Status' => [':constants'];
# Pass required versions after module names
use use '5.12.0', 'HTTP::Status' => '6.00' => [':constants'];
# ...or in your own module, importing on behalf of its caller:
package MY::Macro;
sub import {
use use;
local @_ = qw[ Module1 Module2 ];
goto &use::use;
}
please learn how to use <code>..</code> tags next time °
Questions:
- did you already install that module?
- what is the result of perldoc use
- what is the result of perldoc -l use
°) for more tips, please see
Markup in the Monastery
How do I post a question effectively?
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.