Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Athanasius

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?
    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 wandering the Monastery: (15)
    As of 2015-07-29 11:34 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (263 votes), past polls