user-pic

Samir Parikh

  • Website: samirparikh.com
  • About: Someone who knows very little about programming and even less about Perl.
Subscribe to feed Recent Actions from Samir Parikh

  • Yuki Kimoto commented on Adventures in Perl

    Thank you for discovering the benefits of Perl, including its similarity to Unix / Linux shells and the built-in regular expressions in programming languages.

    I'm Yuki Kimoto.

    I'm one of the Perl users working on blogs.perl.org.

  • Toby Inkster commented on Perl Weekly Challenge 084

    This:

    my @newlist = map { BLOCK } @oldlist;
    

    Is basically just a shortcut for:

    my @newlist = ();
    for my $item ( @oldlist ) {
        local $_ = $item;
        my @got = do { BLOCK };
        push @newlist, @got;
    }
    

    And if the block is just a simple expression like a regexp, then you don't need the curly braces. So for example, to lowercase a bunch of strings:

    my @lowercase = map lc, @uppercase;
    
  • Ben Bullock commented on Monthly Report - October

    Good luck with your treatment.

  • Mohammad Sajid Anwar commented on Monthly Report - October

    Thanks Samir for your kind message.

  • Mohammad Sajid Anwar commented on Monthly Report - October

    Thanks Ben for your kind message.

Subscribe to feed Responses to Comments from Samir Parikh

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.