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

Last login: Thu Jun 29 12:08:14 on ttys000 Rachels-iMac:~ Eric$ ls -hl total 184 drwxr-xr-x 11 Eric staff 374B Jun 14 13:19 AndroidStudioProjects drwx------@ 3 Eric staff 102B Jun 7 19:44 Applications drwxrwxr-x@ 3 Eric staff 102B Jun 29 12:08 Creative Cloud Files drwx------+ 35 Eric staff 1.2K Jun 29 12:13 Desktop drwx------+ 8 Eric staff 272B Jun 28 09:55 Documents drwx------+ 152 Eric staff 5.0K Jun 29 10:48 Downloads drwx------@ 68 Eric staff 2.3K Jun 29 12:14 Library -rw-r--r--@ 1 Eric staff 89K Jun 19 02:23 License.pdf drwx------+ 3 Eric staff 102B May 21 15:26 Movies drwx------+ 4 Eric staff 136B May 21 15:36 Music drwxr-xr-x 6 Eric staff 204B Jun 24 09:22 NetBeansProjects drwx------+ 5 Eric staff 170B May 31 17:49 Pictures drwxr-xr-x+ 5 Eric staff 170B May 21 15:26 Public drwxrwxrwx 7 Eric staff 238B Jun 29 11:18 perl5- Rachels-iMac:~ Eric$

Replies are listed 'Best First'.
Re^4: Permissions denied
by karlgoethebier (Abbot) on Jun 29, 2017 at 16:55 UTC

    Can you add code tags please?

    «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

      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$

        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