Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister


by Athanasius (Abbot)
on May 01, 2012 at 11:13 UTC ( #968231=user: print w/ replies, xml ) Need Help??

Errors, like straws, upon the surface flow;
He who would search for pearls, must dive below.

— John Dryden

Favourite Nodes

It should be noted that no ethically-trained software engineer
would ever consent to write a
DestroyBaghdad procedure.
Basic professional ethics would instead require him to write a
DestroyCity procedure,
to which
Baghdad could be given as a parameter.
— Nathaniel Borenstein

Useful Regexen

  • by Benjamin Goldberg, in How can I output my numbers with commas added?:
  • $integer =~ s/ (^ [-+]? \d+? (?=(?>(?:\d{3})+) (?!\d)) | \G\d{3}(?=\d) ) /$1,/gx;
  • to extract the name of the current s‎crip‎t (or module) from the full path:
  • (my $s‎crip‎t = $0) =~ s| ^ (?: .* [\\/])? (.*) \.p[lm] $ |$1|x;

    Do not free a camel of the burden of his hump;
    you may be freeing him from being a camel.

    — G. K. Chesterton

    Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others studying the Monastery: (8)
    As of 2015-08-31 16:27 GMT
    Find Nodes?
      Voting Booth?

      The oldest computer book still on my shelves (or on my digital media) is ...

      Results (358 votes), past polls