1

I have a Perl module CSS::Minifier that I need to make executable (command line utility) and use it in my Mac app, but I don't know if it's even possible.

Is there any way I can create a standalone binary from this module and use it from Terminal on a Mac?

daxim
  • 38,703
  • 4
  • 63
  • 128
eozzy
  • 62,241
  • 100
  • 265
  • 409
  • http://stackoverflow.com/questions/1237286/how-can-i-compile-my-perl-script-so-it-can-be-executed-on-systems-without-perl-it http://stackoverflow.com/questions/2948405/how-to-compile-a-perl-script-pl-to-a-windows-executable-exe-with-strawberr – daxim Jan 13 '12 at 15:55
  • 1
    On a mac, you can be fairly confident perl is already installed on the system, so there's no real need to make a binary. – Wooble Jan 13 '12 at 16:04

1 Answers1

5

You should look into the PAR::Packer module and its pp command line utility which will take a Perl script and turn it into a binary, fully loaded with any prerequisites needed.

daxim
  • 38,703
  • 4
  • 63
  • 128
Wes Hardaker
  • 20,929
  • 2
  • 37
  • 68