#perl - Wed 28 Mar 2007 between 23:00 and 23:12



jagermanYou mean e
f00li5hjagerman: presume that was either ascii 3 or a unicode something
jagermanThat was a unicode heart
f00li5hjagerman: unicode irssi
corporatemonkeyyou guys have any idea how to unescape the HTML?
f00li5hneat.
jagerman\x2665
f00li5hcorporatemonkey: which html parser are you using, and have you read the docs for it?
jagermanf00li5h: Providing you have a utf8-supporting terminal, it works perfectly.
f00li5hso it's my terminal?
corporatemonkeyHTML::TokeParser::Simple
jagermanOr maybe the charset it's set to
misc--how can I get a list of all my objects for a specific class?
jagermanYou can't.
f00li5hmisc--: you mean instances of a specific class?
misc--yes
f00li5hnot for free you can't
misc--: you have to make your constructor track them in a package variable
misc--ahhh... right ok
ok thanks for that.
jagermanAnd even then, you aren't guaranteed that someone else didn't create one without using your constructor
f00li5hmisc--: sure thing
misc--well the only way to construct it is through the constructor, so that's ok
f00li5hjagerman: owch, like mis-behaved subclasses etc
misc--: what if i just randomly bless a hash into your module?
perlbot: karma misc
perlbotKarma for misc: -27
misc--that would be mean :) Hmm... something to think about though
jagermanf00li5h: You could get around that, I suppose, with a random package name and an eval.
f00li5hjagerman: oooh, that's a horrible plan, horrible, but good
Khisanththey could create one with your constructor and use ref()
jagermanOr storing all your methods in a lexical variable, then using an AUTOLOAD to only dispatch methods on valid objects
Then you'd also want some checksumming of the object contents themselves, to make sure someone didn't get an object and then gut it.
f00li5hjagerman: yowch
i think at this point, inside out is the way to go
although i don't understand your "gutting an object" idea
imMutei think at this point, you are too anal retentitve
jagermanObviously the only solution is to leave OO to BAR and BARdoc.
FOO is too easy for it.
f00li5hjust have the lisence your module is under state "the lisence of perl, as long as you don't violate encapsulation"

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 123 

IrcArchive