Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2019-02-16 11:01 GMT
Find Nodes?
    Voting Booth?
    I use postfix dereferencing ...

    Results (95 votes). Check out past polls.