Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw


by jellisii2 (Hermit)
on Jun 09, 2006 at 15:47 UTC ( #554517=user: print w/replies, xml ) Need Help??

The subject of the image above is an early Mercedes Benz 300SL. It was sourced from Wikipedia's 300SL article. This, in my opinion, is one of those truly rare pieces of functional art.

If you have read nothing else, read these:

When your toolbox is limited to "hammer", you try to refactor all problems into "nails". This is the wrong approach. Don't be afraid to look for new tools for the box. The flip side of this is sometimes the fine hammer is the best tool. Wisdom is being able to discern between the two. The quicker you get to that point, the better off you and those who work with you will be.

These are some useful external links I use pretty regularly, because I'm terrible at memorizing things.

Modules I use on a regular basis:

  • Log::Log4perl. Quit your homebrew logging. It probably isn't as good as Log4perl.
  • YAML::AppConfig. Standardize your data serialization, even in your program configuration files.
  • WWW::Mechanize. Browse the web, headless.
  • Test::More. Start putting tests in your work. Get started with Test::Simple.
  • Net::FTP::File. Fill the gaps in Net::FTP.
  • XML::Twig. I haven't found a need for any other XML processor. Exceptionally powerful and usable.
  • GetOpt::Long. Make passing switches and data into your s‎crip‎ts easy.
  • File::Spec. Never worry about how paths are built again.
  • Pod::Usage. Use POD for documentation. Get it somewhere your users will see it.
Speaking of POD, here is a useful template.

Monks I've met in real life:

Log In?

What's my password?
Create A New User
[GotToBTru]: Like most Swiss Army Knives, you can cut yourself trying to find the blade you actually want
[GotToBTru]: i am satisfied with the default settings turning the seemingly random formatting into something reliable
[Corion]: GotToBTru: Yeah, I started a quick(ly implemented but slowly running) implementation of a program that would guess the "best" configuration (that is, least amount of changes) from my code, but then found that it stops parsing the source as soon as it ..
[GotToBTru]: sadly, it can't do anything about this
[Corion]: ... encounters sub foo($bar,$baz) {, which is something I like nowadays
[Corion]: GotToBTru: Yeah, that stuff is hard to do away automatically ;)
[GotToBTru]: yeah, you mentioned it could not handle signatures

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-02-27 14:35 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (387 votes). Check out past polls.