Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

toolic's scratchpad

by toolic (Bishop)
on Jun 19, 2007 at 18:04 UTC ( #622064=scratchpad: print w/replies, xml ) Need Help??


restore pm node from cache. for example:

(no longer) broken:
perlcritic ..... jul 2012, takes me to undesired: Steffen Schwigon > Benchmark-Perl-Formance-Cargo-0.03 > perlcritic
Perl::Critic ... jul 2012, takes me to desired: Jeffrey Ryan Thalhammer > Perl-Critic-1.117 > Perl::Critic

SYNOPSIS Number::FormatEng#EXPORT Number::FormatEng

(no longer) broken:

not broken:


For hj4jc: use YAPE::Regex::Explain

The regular expression: (?-imsx:.(?=(R.L))) matches as follows: NODE EXPLANATION ---------------------------------------------------------------------- (?-imsx: group, but do not capture (case-sensitive) (with ^ and $ matching normally) (with . not matching \n) (matching whitespace and # normally): ---------------------------------------------------------------------- . any character except \n ---------------------------------------------------------------------- (?= look ahead to see if there is: ---------------------------------------------------------------------- ( group and capture to \1: ---------------------------------------------------------------------- R 'R' ---------------------------------------------------------------------- . any character except \n ---------------------------------------------------------------------- L 'L' ---------------------------------------------------------------------- ) end of \1 ---------------------------------------------------------------------- ) end of look-ahead ---------------------------------------------------------------------- ) end of grouping ----------------------------------------------------------------------

For japhy: nevermind... I found your email address.

my scratchpad




CPAN module URL, ex. Acme::Tools
  • indep of author name
  • indep of version number /me wonders if reaching 1000 writeups mean he needs to get a life ... outside the Monastery, that is
    For QandAEditors:

    Re Answer: How do I completely remove an element from an array?: This code generates 2 warnings with use warnings;

    Here is some cleaner code:

    use strict; use warnings; my @array = qw( 1 2 3 4 ); for (my $index = $#array; $index >= 0; --$index){ splice (@array, $index, 1) if $array[$index] =~ /1|3/; }


    @INC @INC

    node id 777777 was created during the 7th hour of the 7th day of the 7th month by a user with 77 in his name... that's a lot of sevens

    Just say No to Perl one-liners

    Perl Worst Practices

    Whenever I see someone asking for a Perl one-liner, the 1st 3 questions that pop into my mind are: Why?, WHY?, and WHY?!?!?!?

    I'll admit, they are great for golfing and obfuscations.

    How (Not) To Answer A Question

    (Companion to How (Not) To Ask A Question by jeffa)

    some of that advice applies verbatim here too


    compiled from observing good behavior of other monks

    be gentle, helpful

    resist chastizing

    if you can't resist chastizing, at least be witty show some effort. When replying to a question, most commonly in SoPW, privide helpful information. Refrain from unimaginative, worthless answers such as:

    • Is this homework?
    • This (smells|looks) like homework.
    • This isn't a code writing service.
    This type of reply just serves to add clutter to PerlMonks, thus reducing it signal-to-noise ratio. Particuarly if you offer no more detailed reasons as to why you are chastizing the OP. tired, at least be witty about it. You are under no obligation to respond. Don't respond. no one learns from these. keep maturity levelof monastery high.

    link to docs other nodes, webpages...

    Read carefully through the Original Posting.

    If you answer a question hours after it is asked, read carefully through the other replies and try to build upon the repsones of others, rather than repeating nearly identical answers. provide more details, more links, alternate solutions

    refrain from publicly embarrassing

    use proper English grammar, not web shortcuts "u", "ur", etc.

    If you have time, run your own code before posting. Otherwise, mention that the code is untested.

    Always provide a link when advising the questioner to RTFM or STFW. Show by example that you have made the effort.

    It just dawned on me that PerlMonks are kinda "fuzzy" (this, of course requires elaboration...)

    When posed a somewhat obscurely specified problem, the monks generate several distinct, reasonable solutions. Hooray for the monks!

    Assume the best

    Provide answers at a level of detail which is proprotional to the OP's question. For example, if there is little detail, provide a generic answer, perhaps with a link to an approriate document.

    salazar, I'm compiling

    Tutorials => A Guide to Installing Modules => I don't have permission to install a module on the system!

  • Log In?

    What's my password?
    Create A New User
    [stevenlm87]: Needs help. I am taking an online class for perl and is using Padre. How can I get a list from the input in this code? print "What are your favorite hobbies? "; my $hobbies = <STDIN>; chomp $hobbies; print "Your favorite hobbies are '$hobbies'\n";

    How do I use this? | Other CB clients
    Other Users?
    Others scrutinizing the Monastery: (8)
    As of 2017-02-23 19:48 GMT
    Find Nodes?
      Voting Booth?
      Before electricity was invented, what was the Electric Eel called?

      Results (350 votes). Check out past polls.