mrstlee has asked for the wisdom of the Perl Monks concerning the following question:

Have just re-located to Mac world. Very nice it is too.

Xcode takes some getting to use to though. For one thing - how can I set up targets in a project for perl scripts so that I can run the scripts from Xcode?

Thanks!
  • Comment on How to set up xcode 4.2 to run perl scripts ?

Replies are listed 'Best First'.
Re: How to set up xcode 4.2 to run perl scripts ?
by DrHyde (Prior) on Nov 03, 2011 at 11:09 UTC

    Take a look at Camelbones: http://camelbones.sourceforge.net/index.html

    However, for "pure perl" projects you're better off just using a normal editor, like you would on any other platform.

      Thanks Doc!

      I have taken a quick look at CamelBones. My first attempt built but didn't run. Not sure it supports perl 5.10? I will look again but for the time I just want to run pure perl - e.g. to test solutions to monk-ish queries.

      In any case I was looking for a way to do what I do with UltraEdit/Studio in winders - run and capture output in the console.

      I s'pose what I could do is just run the perl script from a C prog.
Re: How to set up xcode 4.2 to run perl scripts ?
by luis.roca (Deacon) on Nov 03, 2011 at 13:17 UTC

    Xcode is an IDE for the purpose of building MacOSX and iOS applications. CamelBones is/was an attempt at a Perl to ObjectiveC bridge that 'worked'. The creator had planned to attempt a submission of a CamelBones built iOS app but unfortunately passed away before being able to do so. The status, ASFAIK, of the project going forward is unknown.

    If you are looking to run Perl with a CLI on the Mac, Terminal would be the application you use. MacOSX comes with vim and emacs installed and accessible through the command line. There are also free alternatives such as Text Wrangler from Bare Bones and a GUI version of both Emacs and vim(MacVim) available.


    "...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote
      Thanks Luis.

      I've very much enjoyed the integration of a terminal with the graphical environment. On windows I use cygwin & putty to make life a little more civilised.

      What I might try is installing my beloved UltraStudio via CrossOver.

         “What I might try is installing my beloved UltraStudio via CrossOver.”

        You may not need to do all that: UltraEdit for Mac :)

        Just looking quickly at the screenshots (which seem nice) and reading the features you may also want to try BBEdit which has many similarities (ie: projects, built in ftp, svn support and extensive search capabilities with the option of using grep) and has a long history on the Mac with a good mailing list.

        Have fun!


        "...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote