Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  perl  (Read 3428 times)
0 Members and 1 Guest are viewing this topic.
Offline markuskidd

Junior Member


Medals: 1



« Posted 2003-03-30 18:57:15 »

So what's the best online tutorial to get me up and running with perl? I don't really know anything at all about the language..
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #1 - Posted 2003-03-30 21:34:16 »

Erk.  Learning Perl is less fun than gouging your eyes out with a spoon. Wink

I don't know any web resources, but I learnt all my Perl from the UNIX manual pages, the O'Reilly book "Learning Perl" and the "Perl Black Book".  Learning Perl is the particularly good one.

I'm sure there are tutorial web resources, I just don't know of any off-hand.  Try starting at http://www.perl.com/ and http://www.cpan.org/.

Hellomynameis Charlie Dobbie.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #2 - Posted 2003-03-31 04:09:22 »

<rant>
A better thing to do would be to avoid Perl completely... it is one of the ugliest foulest languages I have ever seen.   In a sense it seems its design goals are the exact opposite of Java.. to make things as cryptic and as error-prone as possible.

If you like programming only with dots, backslashes, tildes, dollar signs, exclamations points, quotes, carets, ampersands, and anything else that doesn't relate to any commonly recognizable operation then perl is perfrect or you.
You can be sure that there is no need to obfuscate your code too... Perl code is written in obfuscated form to begin with.

If you don't believe me - just look at some Perl code before you pick up a Perl book and see if you can even get a hint of what it might be doing...
With C, Java, heck even Prolog... you can look at it without knowing the language and intuitively grasp some sort of understandingg of at least parts of it.. even if you don't know about the operators that are more obscure - like pointer dereferencing * and address of &...  With the Perl.. it will look like your cat walked over the keyboard.

If you like the regular expressions though, I hear Python does a good job.
</rant>

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #3 - Posted 2003-03-31 04:12:46 »

Quote
it is one of the ugliest foulest languages I have ever seen.

So... You haven't tried Lisp?  Grin

Offline markuskidd

Junior Member


Medals: 1



« Reply #4 - Posted 2003-03-31 08:02:23 »

Quote
<rant>
</rant>


Well, what can I say but that it's not something I get a say in?  Cry
'Course I'm trying to keep an open mind.
Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #5 - Posted 2003-03-31 10:25:29 »

I wouldn't dismiss it completely out of hand, but it's not a language I'd write anything big in.  It's a very good language for quickly knocking up text-munging scripts and the like.

I do still say it's no fun to learn though! Grin

Hellomynameis Charlie Dobbie.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #6 - Posted 2003-03-31 13:08:48 »

Well if you have no choice (bummer) then I wish you good luck :-)

I can agree with cfmdobbie on some things... Perl does actually work at least :-)... it is a powerful language for certain things, just unnecessarily stupid with it's conventions and syntax.

Offline cfmdobbie

Senior Member


Medals: 1


Who, me?


« Reply #7 - Posted 2003-03-31 13:36:55 »

What, you don't like code like $_=~/^([^0-9].*)$/;? Grin

It's got some nice features.  As I said, I wouldn't use it for anything complicated or big, or in fact anything that has to be maintained.  The largest perl script I wrote was about 300KB (contained about 200KB of plain text) and auto-generated an entire EJB layer for me from a Sybase DB schema... Grin  It was a nightmare!

Anyway, it's been proven that if you generated a random stream of characters, it's more likely to be a valid, compiling, syntax-correct Perl program than any other language.  I'm not kidding here.

(By the way, for those interested, the code above tests the last line of data you played with and returns true if it had started with a digit.  It also assigns that data to the variable $1.  Obvious, innit?)

Hellomynameis Charlie Dobbie.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #8 - Posted 2003-03-31 19:22:02 »

Quote
(By the way, for those interested, the code above tests the last line of data you played with and returns true if it had started with a digit.  It also assigns that data to the variable $1.  Obvious, innit?)                          


Of course - I can tell by the $1 = part... oh wait a second... Wink

Offline Breakfast

Senior Member




for great justice!


« Reply #9 - Posted 2003-03-31 22:08:17 »

I have heard good things about Python for the kind of stuff Perl is supposed to do as well. I'd suggest pretending to use perl but really using python and hoping no-one notices until you get paid.

Unless the job is to maintain someone else's perl in which case options include wailing, gnashing teeth and running away to join the foreign legion.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Argoyle

Senior Newbie





« Reply #10 - Posted 2003-04-01 04:36:39 »

You wouldn't even need to enter the $_ =~ part since the perl interpreter uses $_ by default but maybe you added that for readability  Grin
Offline Captain-Goatse

Junior Member




I suck at teh 2D. XBOX IS BIG LOL!111


« Reply #11 - Posted 2003-04-01 09:32:24 »

Sorry, but lisp is the mother of god, hence Java descends from it.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #12 - Posted 2003-04-01 13:56:55 »

Java descends from Lisp?  I think not Smiley

Smalltalk and C maybe.  Lisp is just one off those fringe languages that are only used by the ultra nerdy.  People that freak out about Emacs because they are stuck in the world of ASCII terminals and such.
Tongue

Offline sma

Junior Member





« Reply #13 - Posted 2003-04-01 17:53:50 »

Quote
Java descends from Lisp?  I think not Smiley

Smalltalk and C maybe.


Actually, Smalltalk's root is Logo which is a simplified child of Lisp. Objective-C is a child of Smalltalk and C and Java has most of its features from that language. (I have to defend Lisp here which IMHO is one of the coolest languages Wink

And to answer the original poster's question: Please consider Ruby as an alternative to Perl. It's a very readable language combining the better features of Perl with the power of Smalltalk plus an easy to learn syntax.

.: Truth Until Paradox!
Offline maxcaleb

Senior Newbie




Say car Ramrod!!


« Reply #14 - Posted 2003-04-01 21:13:19 »

Please oh please no more talk of functional languages Grin
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (12 views)
2014-08-01 22:53:16

CogWheelz (14 views)
2014-08-01 22:51:43

CopyableCougar4 (15 views)
2014-08-01 19:37:19

CogWheelz (19 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (35 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36
Resources for WIP games
by CogWheelz
2014-08-01 18:20:17

Resources for WIP games
by CogWheelz
2014-08-01 18:19:50

List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!