Hi Emeka, On Sat, 23 Jul 2011 12:55:56 +0100 Emeka <emekami...@gmail.com> wrote:
> Hello All, > > I have been here for a long time, but I just read stuff. I have not mustered > enough energy to really check what Perl is all about until yesterday. > Write-only, cowboy language or something pretty cool. > I spent few hours > going through learn.perl site stuff. I was really impressed. To me this is > indeed a cool language. Aside from learn.perl.org which is under-maintained and incomplete, I've been maintaining an alternative Perl beginners site on http://perl-begin.org/ , which is much better. Check it out too. > > However, I noticed that among beginners here their concerns are mainly file > manipulation, string manipulation and hash table. Shouldn't someone make a > note with simple examples and put it on the internet? We're covering file manipulation, string manipulation and hash tables extensively on the various resources of http://perl-begin.org/ . However, often newcomers come with unique problems which require understanding of the programming primitives provided by Perl and how to combine them to produce a greater solution. This is something that cannot be taught from examples, and if you desire examples you can look at: http://rosettacode.org/ > And I would want to > see codes from experts here once in a while with their design's reasons. What kind of codes from experts? Experts here often give code as answer to questions. Isn't it good enough? > > I have my own issues, and the most confusing part of Perl to me is this > thing called context. Why do we have it in Perl? What is its gain to be > language ? See: http://perl-begin.org/tutorials/modern-perl/xhtml/chapter_01.html#context_philosophy > And another thing I am having issue to figure out is when it is > really needed is \&hoom, when hoom is a sub. I know from C , that if one is > to use function as a parameter that it should be in the form of address. \&subroutine_name takes a reference to an existing package-scope subroutine called "subroutine_name": [CODE] sub subroutine_name { # Do something } . . . # later on: my $sub_ref = \&subroutine_name; # Silly example: $sub_ref->(1,2,3); [/CODE] If you omit the "\&" you have a bareword, that may be considered a string without strict/warnings or may be a subroutine call with trailing parenthesis. > > Apart from context, are there other hidden gems I need to know? > I recall a presentation by Reuven Lerner about 5 things every Perl programmer should know. Also see: http://perl-begin.org/tutorials/bad-elements/ > I would want to also thank the author of Learning Perl the Hard Way (Allen > B. Downey). I would want that book to be called Learning Perl the Soft Way. > Ah, I've heard a few bad things about that book, but I'm not sure they are substantiated. There's also "Impatient Perl": http://perl-begin.org/tutorials/impatient-perl/ > Finally , this group is awesome ... with kind experts and mentors. I really > appreciate you help and time. Thanks! Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ UNIX Fortune Cookies - http://www.shlomifish.org/humour/fortunes/ My opinions may seem crazy but they all make sense. Insane sense, but sense nonetheless. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/