Perl Newbie and OSX

Jump to First Reply
Posted:
in Genius Bar edited January 2014
Hi All,



I've recently taken up learning Perl, but I've hit a snag that seems to be new with the 10.1.4 update. In order for scripts to run, they must utilize Unix-style line feeds instead of Macintosh carriage returns.



I've tried using BBEdit to add the line feeds, but this doesn't seem to work (I've switched on this option in both the preferences pane and in the options pane that pops up from the Save dialog).



Is there a way to put the line feeds into the script itself?



Any help would be appreciated!



TIA

Comments

  • Reply 1 of 2
    jutusjutus Posts: 272member
    Project Builder will convert carriage returns between WIN/UNIX/Mac nicely.
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 2
    hot chahot cha Posts: 37member
    Hi Jutus,



    Thanks for the reply. I gave your suggestion a try, but it didn't make a difference.



    If I could trouble you a bit more, perhaps you could make a suggestion?



    Whenever I try to run a script in the terminal, all I get is a new prompt.



    This is what I type:



    chmod +x filename.pl



    Am I doing something incorrectly?





    Best,



    hc
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.