in reply to Re: unix to perl questions
in thread unix to perl questions

I work it out in word but then have to retype it into vi. So none of the capitalizaion will be there unless it's a variable. I have written 2 other scripts so that are working so I am getting it. What is this programmers editor you speak of? I am running window 8, using oracle vm shell with Ubuntu, my Perl verison is v5.18.2.

Replies are listed 'Best First'.
Re^3: unix to perl questions
by GrandFather (Saint) on Mar 12, 2015 at 08:56 UTC

    Komodo Edit or Sublime are good programmer's editors on Windows. However if you are doing this in the context of Unix you'd be better to set up a virtual machine (Virtual Box or VM Player for example) on your Windows box and run Unix in the VM. That way you can work with a real unix system and tools. There's a bit of work getting everything going that way, but you'll learn a lot!

    Perl is the programming world's equivalent of English
      I actually do run oracle VM with Ubuntu and use vi for the my editor. I just like to work it out in word first...I write out the pseudocode and then what the real code would be. As this is only my second week writing in perl there are many mistakes and I have to do a ton of research(it's not always conducive to have vm running with bunch of tabs open on my laptop).I remember the days of COBOL I pouring over lines of printed code and real drawn out flowcharts on huge graph paper.

        I'd strongly suggest you skip the Word step. Maybe you'd be happier using something like nano (*nix's equivalent of notepad) instead of vi, unless you are comfortable using vi.

        A good learning technique is to add very small amounts of code at a time and run the code to check it does what you expect. Although you have yet another tool to learn, learning to use the debugger even just a little bit can help a lot in understanding what your code is doing. There are many other debugging techniques than just using the debugger, but in my view a good debugger gives much better direct information about what your code is doing than any other technique.

        It is also important to understand why you are getting error with strict and warnings. Almost always they are telling you about badness in your code. If you don't understand an error, reduce the code to a minimum that shows the error and bring both the code and the exact error message (copy and past is your friend) here and we will help.

        Perl is the programming world's equivalent of English