Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Perl Monk, Perl Meditation.
 
PerlMonks

sauoq

by sauoq (Abbot)
 | Log in | Create a new user | The Monastery Gates | Super Search | 
 | Seekers of Perl Wisdom | Meditations | PerlMonks Discussion | 
 | Obfuscation | Reviews | Cool Uses For Perl | Perl News | Q&A | Tutorials | 
 | Poetry | Recent Threads | Newest Nodes | Donate | What's New | 

on Jul 18, 2002 at 02:17 UTC ( #182681=user: print w/ replies, xml ) Need Help??

I was born. That's all I remember.

sauoq.perlmonk.org  |  My scratchpad

The True Catacombs of Perlmonks | What XML generators are currently available on PerlMonks? | Perlmonks Related S‎crip‎ts | Friar | Writeup Formatting Tips | PerlMonks CSS Examples | Chatterbox Stats (external)

The editors' hall of mirrors and trickery

Little Nuggets of Good Advice:

  • Don't use prototypes until you fully understand the issues in Tom Christiansen's article about them.
  • Don't get preoccupied with performance; your time is more valuable than the machine's.
  • Don't use indirect object notation.

Perl Annoyances (yeah, it has a few.)

  • if (%hash) { ... } won't work as expected with a tied hash.
  • There is no easy way to reliably determine whether a reference is a reblessed qr//
  • Two argument open is used with <> (and subsequently with -p and -n) resulting in potential security issues.
  • You need no warnings 'qw'; to do qw/ # / quietly.
  • sub x { 1 for 1 } returns !1 instead of 1 like you might expect.
  • Requiring values or keys to reset the each iterator is ridiculous. In fact, each sucks in general.

Some Insteresting Nodes

The wonderful series, Meditations on Programming Theory, by mstone:

  1. MOPT-01 - assumptions and spaces
  2. MOPT-02 - substitution and formal systems
  3. MOPT-03 - identification, part 1
  4. MOPT-04 - identification, part 2

A selection of posts on XP and reputation:

Killer Obfu:

Miscellaneous interesting nodes I have yet to categorize:

Perl Weirdness!

Info about PM related third-party websites.

Some chuckles...

Monks whose homenodes I find interesting for one reason or another:

  • grinder - a list of nooks and crannies around the monastery and other fun stuff.
  • turnstep - lots of stuff about the monastery.
  • blakem - fastest rising monks.
  • ybiC - lots of stuff. (long xp/rep post list)
  • adrianh - list of good reads.
  • dws - a few pointers to good reads.
  • Aristotle - various stuff.
  • tilly - lots of stuff here.
  • VSarkiss - some monastery archeology.
  • brian_d_foy - short list of good reads.
  • Masem - great list of golf nodes.
  • YuckFoo - short list of fun stuff.


Things of Mine

Useful Stuff

One-liners

Hex viewer: perl -0777e'$i++,print $_.($i%20?" ":"\n")for unpack"(H2)*",<>;print"\n"' file

Useless Stuff

Finally, some japhs I can call my own

perl -e "s();echo Just another Perl hacker,|;;open _;print<_>" perl -pe "BEGIN{@ARGV='echo Just another Perl hacker,|'}"
Another variation on the theme:
perl -pe "BEGIN{@ARGV='perl -le print+q~Just\ another\ Perl\ Hacker,~| +'}"
And another. this one only works on *nix, I'm afraid.
perl -i\|perl -le 's//$^I -e"print q-Just another Perl hacker,-"/;open + _;'
The windows version isn't as nice. (I much prefer the -i\| in the *nix version.):
perl -i"|perl" -le "s//$^I -e\"print q-Just another Perl hacker,-\"/;o +pen _;"

Some Opinions

On Node Retitling

This summary is taken from a reply to Tanktalus somewhere under Consider this: What makes a good node title?:

The best titles are not the ones you think are best. In fact, the whole concept of best in this instance is a local optimization and a function of the searcher. Retitling nodes in an effort to bring them closer to our preconceived notions of what makes an ideal title is necessarily introducing inefficiency. Good search coverage is, essentially, an emergent phenomenon. The assumption that we can help it along by retitling nodes is fallacious.


A lot of &bull;

Login:
Password
remember me
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: (29)
ikegami
BrowserUk
GrandFather
talexb
jdporter
wfsp
Your Mother
atcroft
salva
kennethk
herveus
dave_the_m
MidLifeXis
Tux
dpuu
davies
SFLEX
jkva
ssandv
dasgar
tospo
AndyZaft
Neighbour
FluffyBunny
PerlScholar
ldbpm
bluecompassrose
antosaga
prepaidphoneguy14
As of 2010-09-02 15:22 GMT
Sections?
Seekers of Perl Wisdom
Cool Uses for Perl
Meditations
PerlMonks Discussion
Categorized Q&A
Tutorials
Obfuscated Code
Perl Poetry
Perl News
See About the sections of PerlMonks
Information?
PerlMonks FAQ
Guide to the Monastery
What's New at PerlMonks
Voting/Experience System
Tutorials
Reviews
Library
Perl FAQs
Other Info Sources
Find Nodes?
Nodes You Wrote
Super Search
List Nodes By Users
Newest Nodes
Recently Active Threads
Selected Best Nodes
Best Nodes
Worst Nodes
Saints in our Book
Leftovers?
The St. Larry Wall Shrine
Offering Plate
Awards
Craft
Snippets Section
Code Catacombs
Quests
Editor Requests
Buy PerlMonks Gear
PerlMonks Merchandise
Planet Perl
Perlsphere
Use Perl
Perl.com
Perl 5 Wiki
Perl Jobs
Perl Mongers
Perl Directory
Perl documentation
CPAN
Random Node
Voting Booth?

My favourite poll on PerlMonks is ...

Your first Perl Book - the first one ever
Average number of caffeinated beverages per work day - the poll with the highest participation
My Thoughts on the New Voting/Experience System - the poll with the fewest votes cast
When I grow up, I want to be: - one of the polls with the fewest options
Perl 6 will primarily be: - the first one on Perl6
When I see a poll - one of the many polls about polls
this poll ;-)
yet to come
none - I hate polls. Bah.
some other

Results (49 votes), past polls