Cool Perl Tricks Collection

8 replies
Can anybody tell me or point to what are all the interesting tricks in perl programming? I do some perl programming and liked it.
Thanks in advance for help.
#collection #cool #perl #tricks
  • Profile picture of the author cfountain
    I highly recommend the Perl Cookbook from O'Reily. I have found versions of it available online at: mkweb.bcgsc.ca/intranet/perlbook/cookbook/index.htm
    {{ DiscussionBoard.errors[948277].message }}
  • Profile picture of the author solidsoul
    Anything coding seek O'Reily..
    {{ DiscussionBoard.errors[954271].message }}
  • Profile picture of the author Sofia22
    Perl Cookbook from O'Reily!!
    Good Luck, Friend!
    {{ DiscussionBoard.errors[958034].message }}
  • Profile picture of the author amerigo
    ###just wanted to throw in one of my favorites.
    ###variable referencing made easy.
    $foo='some value';
    $bar='some other value';
    @variables=qw/foo bar/;
    for (@variables)
    {print "$_ is $$_\n"}
    {{ DiscussionBoard.errors[958146].message }}
    • Profile picture of the author xiaophil
      Some people might say the best trick Perl can do is a disappearing act.

      Why people persist with Perl is beyond me when there are more effective and pleasant options available which don't involve self-flagellation.

      If you cannot be swayed and are certain that this is your chosen path then you may wish to seek out

      PerlMonks - The Monastery Gates
      {{ DiscussionBoard.errors[960433].message }}
      • Profile picture of the author fatboy
        Originally Posted by xiaophil View Post

        Some people might say the best trick Perl can do is a disappearing act.

        Why people persist with Perl is beyond me .....
        Wow, got to say that opinion is one that I don't hear very often and personally can't agree with. (Just a personal opinion though, not saying your opinion is wrong )

        Must admit for web scripting Perl probably isn't the easiest options to go for, but that doesn't mean (by a long shot) its still not used a lot.

        I think that 80% of my production 'behind the scenes' scripts are Perl code - and at a guess near enough all of my dev testing scripts are. Its a brilliant language to put something together really fast to see if it will work without putting a lot of work into it.

        See, to make up for your non-believing I will have to go make a Perl script to please the Perl Gods!!

        edit: mmm not bad for my first post - so hello everyone
        {{ DiscussionBoard.errors[1013831].message }}
  • Profile picture of the author zain654321
    For me these tricks are very much effective

    1)developer.novell.com/wiki/index.php/Cool_Perl_Tricks
    2)Perlcircus.com
    {{ DiscussionBoard.errors[973398].message }}
    • Profile picture of the author JamesFraze
      2 great resources for perl reference and code examples

      perlfaq
      perlfunc - perldoc.perl.org


      Perl is a great language - flexible, ease of coding, modular, huge community, perfect for system administration, established, proven, tons of books, object orientated, and more.

      #!/usr/bin/perl -wT
      use strict;

      start all cgi programs with this as a minimum, and read up on perl cgi security.

      I like perl far better than any other language because you can code things very quickly, and securely if you know what you are doing.

      I don't like perl because you can be sloppy, and leave huge gaping security holes if you don't know what you are doing.
      {{ DiscussionBoard.errors[978157].message }}

Trending Topics