in reply to Most useless function.

This one tickled my fancy :)
#!/usr/bin/perl -wl use strict; use Acme::Don::t; print "this" and don't {print "that"};

Replies are listed 'Best First'.
Re^2: Most useless function.
by radiantmatrix (Parson) on Feb 17, 2006 at 19:49 UTC

    Really? I love Acme::Don::t!

    do { # some debugging stuff } #becomes don't { # some debugging stuff }

    It's essentially a block comment for code removal, and while I wouldn't put it in production, it's a very useful programming tool. IMO, anyhow.

    <-radiant.matrix->
    A collection of thoughts and links from the minds of geeks
    The Code that can be seen is not the true Code
    I haven't found a problem yet that can't be solved by a well-placed trebuchet
      That is not only a clever trick, but it provokes thoughts I should have been having for years.


      -----------------------
      You are what you think.