in reply to Re^5: -bash: use
in thread -bash: use

Thanks - sorry about that. This isn't my code, from CPAN

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; }

Replies are listed 'Best First'.
Re^7: -bash: use
by Corion (Patriarch) on Jul 01, 2017 at 19:06 UTC

    I think we need to take several steps back here.

    What are you trying to do? What is your situation? What is the exact code you are trying to run?