Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Athanasius

by Athanasius (Monsignor)
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?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (5)
    As of 2014-07-25 11:37 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite superfluous repetitious redundant duplicative phrase is:









      Results (170 votes), past polls