Live data from Hacker News

Learn Perl in about 2 hours 30 minutes

qntm.org

31–40 of 111 posts

Re: Learn Perl in about 2 hours 30 minutes

#31
post #29

Sam, you've certainly made an enemy out of every member of the Perl community with this sarcastic and incomplete post. Once you've gotten through OReilly's beginner Perl books and "Programming Perl", if you truly want to learn how to scale Perl in the enterprise, read Damian Conway's Object Oriented Perl. Once you can write solid consistent OO Perl, read "Apache modules with Perl and C".

> Sam, you've certainly made an enemy out of every member of the Perl community with this sarcastic and incomplete post.

What does the Perl community mean to you? It must not include Sam.

Is it people who organize and participate in conferences and get indignant at the slightest negative comment?

Re: Learn Perl in about 2 hours 30 minutes

#33
post #16

Over the past week I've read "Modern Perl", and will finish it later today: http://onyxneon.com/books/modern_perl/ The ebook/PDF edition is free! It's a great book for learning (modern) Perl basics if you're already familiar with programming concepts and another language like JavaScript (which is where I'm coming from). Actually, I think the knowledge and best-practices gleaned from the book will help to make me a be…

Were you previously a Perl programmer at all? And are you learning it for any particular purpose? I've always wanted to give Perl a go but can't find something I want to use it for.

Shouldnt be too hard, perl does just about anything.

Re: Learn Perl in about 2 hours 30 minutes

#34
post #29

Sam, you've certainly made an enemy out of every member of the Perl community with this sarcastic and incomplete post. Once you've gotten through OReilly's beginner Perl books and "Programming Perl", if you truly want to learn how to scale Perl in the enterprise, read Damian Conway's Object Oriented Perl. Once you can write solid consistent OO Perl, read "Apache modules with Perl and C".

> Sam, you've certainly made an enemy out of every member of the Perl community with this sarcastic and incomplete post. What does the Perl community mean to you? It must not include Sam. Is it people who organize and participate in conferences and get indignant at the slightest negative comment?

No, we are not all like that. Fortunately. The author states:

"A bunch of new people started at work and we use a lot of Perl in our department. So I put together some information about Perl and I thought it might be worth sharing so here it is."

For that purpose, it is fine.

Re: Learn Perl in about 2 hours 30 minutes

#35

Nice concise writeup. The only important thing he missed as far as I can see is that the '..' operation can create anonymous arrays of sequences of characters too so 'a' .. 'z' gives you an array of all the letters between 'a' and 'z'.

Not as useful as 'a'..'z', but the '..' operator works on strings, also. For example, 'aa'..'zz'.

Re: Learn Perl in about 2 hours 30 minutes

#36
post #29

Sam, you've certainly made an enemy out of every member of the Perl community with this sarcastic and incomplete post. Once you've gotten through OReilly's beginner Perl books and "Programming Perl", if you truly want to learn how to scale Perl in the enterprise, read Damian Conway's Object Oriented Perl. Once you can write solid consistent OO Perl, read "Apache modules with Perl and C".

[deleted]

Re: Learn Perl in about 2 hours 30 minutes

#37
post #29

Sam, you've certainly made an enemy out of every member of the Perl community with this sarcastic and incomplete post. Once you've gotten through OReilly's beginner Perl books and "Programming Perl", if you truly want to learn how to scale Perl in the enterprise, read Damian Conway's Object Oriented Perl. Once you can write solid consistent OO Perl, read "Apache modules with Perl and C".

Hrm, someone spends a lot of time putting together this documentation about Perl and you claim he's making enemies now. The correct answer when someone tries to contribute is "Thank you". If you don't agree with the contribution, consider "Thank you, but..." I don't think the documentation is that bad. I don't read it as sarcastic either. Sure it raises some of Perl's warts, big deal.

Re: Learn Perl in about 2 hours 30 minutes

#38
If you really want to learn Perl, you must install the read-eval-print loop (REPL) utility. If you have never used this utility, I will have serious grounds to doubt your Perl skills.

Unlike Ruby or Python (or most other modern high-level programming languages), Perl does not come with an interactive REPL shell, which makes no sense at all, since, due to Perl's obscure syntax, someone trying out Perl would benefit at least twice as much from a REPL shell than someone learning Ruby or Python. Fortunately, the Devel::REPL package remedies this. Installing it is super-simple:

    $ sudo /usr/bin/perl -MCPAN -e shell
    > install Devel::REPL
Once installed, simply open your terminal and run:

    $ re.pl
Once you have the REPL shell running, you can pretty much copy-and-paste into it examples from this tutorial (or any other) and watch what Perl has to say in response.

Re: Learn Perl in about 2 hours 30 minutes

#40

If you really want to learn Perl, you must install the read-eval-print loop (REPL) utility. If you have never used this utility, I will have serious grounds to doubt your Perl skills. Unlike Ruby or Python (or most other modern high-level programming languages), Perl does not come with an interactive REPL shell, which makes no sense at all, since, due to Perl's obscure syntax, someone trying out Perl would benefit at…

simply: $ sudo cpan Devel::REPL

also you can do this: $ perl -e 'print "Hello World!\n";'

Post reply on HN