Questions tagged [perl]

A widely used cross platform scripting language that is installed in OSX.

A widely used cross platform scripting language that is installed in OSX.

40 questions
17
votes
2 answers

How to install CPAN modules from the command line on OS X?

Simple question: How to install CPAN modules on OS-X like normal Linux/Unix way? I just want to type in cpan something like install Perl6::Say for example.
gaussblurinc
  • 459
  • 1
  • 7
  • 21
8
votes
2 answers

How to reinstall Mac OS X built in Perl on Mountain Lion?

I updated to Mountain Lion 4 days ago and then realised that my perl scripts did not work any longer. So I installed ActivePerl 5.14 (newest version) because I thought that perl has been deleted. After installing ActivePerl though my programmes…
user26392
  • 81
  • 1
  • 1
  • 2
5
votes
1 answer

El Capitan SIP and CPAN

As we know, Apple introduced it's new "rootless" feature in El Capitan that greatly restricts what the root user is capable of doing. Unfortunately this feature breaks CPAN for Perl users. One can install new CPAN modules but you cannot install a…
4
votes
1 answer

Find and replace with grep and perl

I'd like to grep and replace specific text in textfiles within a directory and all subdirs. I try the following: ls -R | egrep '.*\.txt' | perl -i -p -e 's/one.a/two.a/g' Although grep spits out a list and this executes, I can't seem to get perl…
jml
  • 382
  • 1
  • 4
  • 12
3
votes
0 answers

Can't set any perl version as default in Macports

I installed perl_select, which I don't think, I've had to do for any other application. Despite that I cannot set any version of Perl as default as I easily can for python. % port echo installed | grep ^perl perl5 …
Philippe
  • 519
  • 1
  • 5
  • 11
3
votes
3 answers

Getting Perl DBD::mysql working on OS X 10.7?

I can't seem to get Perl & MySQL to talk to each other on OS X 10.7 Lion. I did all the installs by the book, I used Oracle's PKG installer for the latest MySQL Community Server, and I installed DBI and DBD::mysql via CPAN. There were not problems…
Bart B
  • 186
  • 1
  • 7
3
votes
2 answers

Perl RegEx in Mac terminal: grep -p "^([^\t]*\t){2}mypattern\t" textfile.txt doesn't work

I am a beginner of using programming commands. Why {2} is not functional after ([^\t]*\t) in macOS terminal? Is there any website providing Perl RegEx which works in mac? Thanks!
Kylie M.
  • 31
  • 1
  • 3
3
votes
1 answer

Problem installing Devel::REPL using cpanm

I tried following the instructions for installing CPAN modules at this link: http://www.cpan.org/modules/INSTALL.html However, when I try to install Devel::REPL, it fails. Here is the log: [user@machine] cpanm Devel::REPL --> Working on…
David Cullen
  • 135
  • 9
2
votes
1 answer

How to implement this script on a Mac

I just read Matt Might's blog post on eliminating filler and "weasels" from my writing, and I am wondering how I would implement this on Latex to run and check my document? I know I should use terminal, but I'm not at all familiar with how Terminal…
Moderat
  • 117
  • 1
  • 1
  • 4
2
votes
1 answer

Perl library locations, and System Integrity Protection

My system perl seems to have a bunch of cruft left over from previous installations: % which perl /usr/bin/perl % perl -V | perl -ne 'print if /INC/...//' @INC: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 …
Ken Williams
  • 1,394
  • 1
  • 9
  • 15
2
votes
1 answer

Is there a Terminal command to verify macOS screensharing?

Is there a terminal command to determine if a screensharing session from a remote machine is not just initiated but also actively being viewed? Details: I have a background (Perl) process running on a remote machine that issues system commands…
2
votes
3 answers

Crypt-SSLeay on a macbook

I'm trying to install Crypt-SSLeay on a macbook and it failed. I manually downloaded Crypt-SSLeay from cpan and issued: perl Makefile.pl The error is openssl-version.c:2:10: fatal error: 'openssl/opensslv.h' file not found #include…
BioRod
2
votes
1 answer

How to install Monkeysphere on OSX El Capitan

I tried to install Monkeysphere via Homebrew but it complains of an unmet dependency. monkeysphere: Unsatisfied dependency: Crypt::OpenSSL::Bignum Homebrew does not provide Perl dependencies; install with: cpan -i Crypt::OpenSSL::Bignum Error: An…
davidcondrey
  • 1,694
  • 2
  • 17
  • 27
2
votes
1 answer

What is Lion's version of Perl 5?

What version of Perl 5 is OS X Lion shipping with?
Chas. Owens
  • 495
  • 4
  • 13
2
votes
2 answers

automator to run AppleScript for a shell script

For a selected file in Finder, I like to run a perl script using Services. I created an Automator process that runs an AppleScript: on run {input, parameters} tell application "Terminal" activate do script…
Chang
  • 591
  • 2
  • 9
  • 19
1
2 3