in reply to Re^4: Permissions denied
in thread Permissions denied

Last login: Thu Jun 29 13:02:49 on ttys000 Rachels-iMac:~ Eric$ perl cpan.txt Can't open perl script "cpan.txt": No such file or directory Rachels-iMac:~ Eric$ perl5-/prldoc/cpan.txt -bash: perl5-/prldoc/cpan.txt: Permission denied Rachels-iMac:~ Eric$

Replies are listed 'Best First'.
Re^6: Permissions denied
by Corion (Patriarch) on Jun 29, 2017 at 17:17 UTC

    So, what is the content of perl5-/prldoc/cpan.txt ? Does it start with a hashbang like the following:

    #!/usr/bin/perl -w

    You will need to put the path to Perl at the top of your script.

    Alternatively, just run your scripts using Perl directly:

    perl -w perl5-/prldoc/cpan.txt
      Thanks buddy I was able too access my file. How do I download/use modules?

        As this is not your machine, ideally you set up your own Perl to install modules in.

        But as you are just starting out to get your feel around the computer and running Perl programs, maybe there is somebody you can ask to install modules into the system Perl for you?

        I think basically App::perlbrew should set you up without further ado.

        "How do I download/use modules?"
        "Das ist ein weites Feld." (Theodor Fontane)

        Ultra short version: cpanm AcmeModule. In your script below the shebang: use AcmeModule qw (coolSub); or what ever. Search in the Perl documentation. For a harder version for step one please see perlbrew. Very recommended. Use Super Search for more insights about all this stuff. Feel free to ask in case of trouble. It is also recommended to show some effort.

        Regards, Karl

        «The Crux of the Biscuit is the Apostrophe»

        perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

      I have a website that I need to turn into a mobile app. I am new to perl