in reply to top ten things every Perl hacker should know

I think you omit a number of things that are of crucial importance

Goodness! I'd better stop. I'm up to eleven already.

• another intruder with the mooring in the heart of the Perl

  • Comment on Re: top ten things every Perl hacker should know

Replies are listed 'Best First'.
Re^2: top ten things every Perl hacker should know
by holli (Abbot) on Mar 16, 2006 at 21:16 UTC
    Know how to comment out large slabs of code easily.
    1. Mark the block to be commented.
    2. Fire up search and replace in regex mode
    3. Search for "^", replace with "#"
    Of course you need a decent editor. The other way round should be obvious ;).


    holli, /regexed monk/

      Or better yet, teach the editor to do 1, 2 and 3 (and the inverse) as a macro.

      And for those without a decent editor wondering what to do, I assume the original reference was about using Pod:

      =begin comment # lots of code here =end comment

      -xdg

      Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      At the risk of starting up a whole new discussion, my vote for a decent editor goes to nedit.

      Cheers,

      JohnGG