Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

toolic's scratchpad

by toolic (Bishop)
on Jun 19, 2007 at 18:04 UTC ( [id://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 EXPORT of Number::FormatEng 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


SYNOPSIS of Verilog::Readmem


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 Re: 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
    Domain Nodelet?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others contemplating the Monastery: (3)
    As of 2024-06-23 02:16 GMT
    Find Nodes?
      Voting Booth?

      No recent polls found

      erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.