G+_Rudy Rodriguez Posted June 19, 2014 Share Posted June 19, 2014 Here's my first Perl program I translated from an old BASIC program, Lunar LEM Rocket. It's horrible in that it's spaghetti code (the tragic GOTO statement), lacks comments, and uses single letter variables. But I got it to "mostly" work. My next big step is to reprogram it so that all the GOTOs will be eliminated. My final step would be to optimize it (and possibly animate it). I also bought an old "Programming Perl, Larry Wall" book which is very entertaining (for a programming book). https://github.com/GitHub4Rudy/PerlLearning/blob/master/lunar.pl Link to comment Share on other sites More sharing options...
G+_Nate Follmer Posted June 20, 2014 Share Posted June 20, 2014 Neat program none the less - We all have to learn goto's at some point, so who cares if it's spaghetti Link to comment Share on other sites More sharing options...
Recommended Posts