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

This is a module - not a script I am using Darwin 5.18.

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

    Are you trying to run your module?

    That's not how modules work.

    Maybe show us what you are actually doing?

      Craigs-MacBook-Pro:Perl craiglavallee$ use -bash: use: command not found

        A module is not intended to be run directly.

        Write your code as a Perl script, save it as myscript.pl and run it as:

        perl myscript.pl
      use Module VERSION

        Dude... you are going to start upsetting people by not providing the information they have requested.

        Show your code.

        Show us how you are *RUNNING YOUR CODE*.

        What is happening is that your bash shell does not have any clue that what you're trying to run is Perl code.

        Try this:

        perl script.pl

        Or put:

        #!/usr/bin/perl

        ...at the top of the script.

      yes, but I can not run the module use -bash: use: command not found. This module lets you import several modules at once. loaded from cspan