Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: launching external process macOS

by kcott (Chancellor)
on May 21, 2018 at 10:57 UTC ( #1214966=note: print w/replies, xml ) Need Help??


in reply to launching external process macOS

I've been using Perl on macOS (and previously, Mac OS X) for quite a few years; however, I don't have it in front of me now so I can't show examples.

++haukex is quite correct. system works as documented (i.e. system LIST) on macOS.

Beyond corroborating that, I did want to provide some advice regarding:

"I am quite new to using Perl on a macOS"

The version of Perl provided by Apple, often referred to as the System Perl, and found in /usr/bin/perl, should generally be avoided outside of specific system use. This Perl is provided for use by macOS, is often some versions behind the current stable one, and may contain its own specific patches. Installing what appears to be a quite innocent CPAN module, may upgrade a dependency, and potentially cause problems with macOS itself. When Apple upgrades macOS, its Perl may also be upgraded (let's say from 5.X to 5.Y): when this happens, everything under 5.X is completely removed, including all CPAN and personal modules you may have installed.

I'd strongly recommend you install perlbrew (see App::perlbrew). I've been using this for years, as have many others here, without any problems. If you do have any issues, there's plenty of people here who can help you.

— Ken

Replies are listed 'Best First'.
Re^2: launching external process macOS
by Anonymous Monk on May 29, 2018 at 10:04 UTC

    Thank you for both answers. I switched to Perlbrew, and it works like a charm. The same is for "system".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1214966]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2018-09-19 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (163 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!