2 ms·
>trying to set up some scripts that could run on Mac with "nothing installed" Perl still comes with MacOS 12.3. And Perl would be a decent language to bootstra
by tyingq 4y ago
>trying to set up some scripts that could run on Mac with "nothing installed"
Perl still comes with MacOS 12.3. And Perl would be a decent language to bootstrap a working Python with working certificates, etc.
Though Apple has said all scripting languages will be removed from the default install eventually.
"Scripting language runtimes such as Python, Ruby, and Perl are included in macOS for compatibility with legacy software. Future versions of macOS won’t include scripting language runtimes by default, and might require you to install additional packages. If your software depends on scripting languages, it’s recommended that you bundle the runtime within the app."
>I guess writing binaries in Go?
Then you get the fun of signing, or README language to guide the user around adding an exception. They sure are making bootstrapping hard. I wish they would pick at least one stable scripting environment to bundle...lua maybe?
- zbentley 4y agoDoes perl have a built in HTTP client? The author wanted to hit a URL, and if I recall perl didn't support that natively (I last used it professionally in 5.16 though, so I may be out of date). If the state of the art in Perl is still "shell out to curl or whatnot" then that is really not portable or stable compared to Python's included urllib--SSL errors or not.
- tyingq 4y ago>Does perl have a built in HTTP client HTTP::Tiny ships with Perl, including 5.16. I'm not sure if MacOS Perl comes with a working IO::Socket::SSL you would need for https. Edit: See if this works or not: perl -MHTTP::Tiny -E 'say HTTP::Tiny->new->get("https://www.google.com/")->{content}'
- jwilk 4y agoBeware that HTTP::Tiny doesn't verify TLS certs by default.