Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Beginning Problems

by mhearse (Chaplain)
on Jan 24, 2013 at 20:27 UTC ( #1015231=note: print w/replies, xml ) Need Help??

in reply to Beginning Problems

If you are writing perl scripts on Mac OS X, I recommend the following:

1. Go to Applications => Utilities => Terminal
2. Adjust the window and text size to your liking
3. Use nano to edit your files: nano
4. After saving your changes, check the syntax: shell> perl -c ./
5. Feed your script to the perl interpreter (it is hungry): perl ./

Replies are listed 'Best First'.
Re^2: Beginning Problems
by Jenda (Abbot) on Jan 25, 2013 at 11:53 UTC

    I hope this was meant as a joke!

    I mean, there's nothing wrong with nano if all you have is a terminal connection somewhere, but suggesting this to someone who's apparently new to programming and (to some extent) computers in general? Someone, I bet, used to GUIs?

    Enoch was right!
    Enjoy the last years of Rome.

      I take your point. Maybe this was a poor suggestion. I tend to see things through my own eyes when I began(1996 using the FreeBSD easy editor). But that doesn't mean everyone else has to suffer.
        Oh, and I agree of course about vi. But when teaching people, I find that they get discouraged.

      Most of the GUI text editors make it difficult to save in a plain-ascii plain-text format. They tend to use fancy file formats, save as UTF-16, insert byte-order-marks, or have odd newlines. Dropping down to a terminal-based text editor may be easier than teaching someone how to find the options to turn each of these off in a program you haven't used previously.

      (And anyway, nano sucks. vim is better. And probably easier to learn, too.)

        Beg your pardon? Nobody would suggest using MS Word or anything similar (though we've had a post by someone who used something like that and saved the script in RTF format). I just tested this with Perl 5.8.9 (rather dated, don't you think) and it doesn't care whether the script is 8bit, utf8 with or without BOM, utf16LE or utf16BE. All work fine.

        Enoch was right!
        Enjoy the last years of Rome.

        (And anyway, nano sucks. vim is better. And probably easier to learn, too.)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015231]
[marto]: I think that actually caught up with me yesterday, felt a really sharp pain where my neck meets my skull.
[Corion]: marto: Ouch, yeah...
[marto]: the boys uncle will take them for a couple of hours this afternoon :)
[marto]: only at work 3 days this week, then off to Copenhagen for a wedding
[marto]: back the following Monday, potentially gone 2-3 days the next week for work
[Corion]: Oh - "Cyber Monday" week is coming up... That's why weird stuff is already discounted now...
[Corion]: marto: Oh, cool, I hope you get to enjoy the trip and Copenhagen! I found it nice (but the mermaid is underwhelming)
[marto]: the kids and their mother are coming too, actually only 9 people at the wedding in total. Still, will be fun

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-11-19 11:38 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (280 votes). Check out past polls.