http://qs321.pair.com?node_id=366564


in reply to Re^3: Draft - Writng pluggable programs with perl.
in thread Draft - Writng plugable programs with perl.

That depends on the implementation. If used correctly, a context object is just like a fancy OO way of giving arguments, one that allows you to do some more interesting stuff. Otherwise, you're definitely right.

For example, the MovableType guys created a 'stash' in their context object, that allows just anyone to put stuff in it, making it exactly the pitfall you described.

I'll say again that I only put it in the tutorial to 'float a phrase' and show what it might look like.


perl -e'$b=unpack"b*",pack"H*","59dfce2d6b1664d3b26cd9969503";\ for(;$a<length$b;$a+=9){print+pack"b8",substr$b,$a,8;}'
My public key