today | current | recent | random ... categories | search ... who ... syndication

Friday, February 08 2002

J. David Eisenberg : An SVG Histogram [in Perl]

I wonder why the author didn't use SVG.pm

refers to

meta

chromatic : "Maybe it was the Perl XML fans talking about SAX being important for more than XML,

but I realized that if I could write a backend module to turn bytecode into XML, the tree matching and conversions would be solved. The only tricky part that's left is generating XSLT or XPathScript or whatever syntax to refactor an error pattern. ... So now I have B::ToXML that can XMLize a code reference, and it works pretty well." I'm scared!

refers to

meta

Me : SCNS.pm 0.1




# Simple







my $method = "examples.getStateName";



print SCNS->new("xmlrpc:http://betty.userland.com/RPC2")->$method(40);







# Less simple







my $service = SCNS->new("xmlrpc:http://betty.userland.com/RPC2");



my $debug   = FileHandle->new(">./debug.txt");







# See below



$service->class("examples");







# Default is STDERR



$service->debug(1,*$debug);







my $answer = $service->getStateName(4);







if (! defined($answer)) { 



   die $service->last_error(); 



}







print $answer;



return 1;



This was mostly just an exercise to prove to myself that there is no magic here beyond the standard eval "require $class"; and AUTOLOAD hacks. Problems to sort out : 1) why installing AUTOLOAD subs in the symbol table doesn't work -- or more specifically, why XMLRPC::Lite::call() hangs; 2) How to AUTOLOAD methods with dots in them without declaring the string as a variable first.

refers to

meta

The random pseudodictionary.com word of the day is : talkintuitive

A descriptor of someone comfortable with or adept at conversation; someone "easy to talk to."
ex. After we got to know each other over a couple of drinks, she was talkintuitive, so I thought I'd ask her back to my place.

refers to

meta

The dictified dictionary.com word of the day is : incontrovertible

Incontrovertible \In*con`tro*ver"ti*ble\, a. Not controvertible; too clear or certain to admit of dispute; indisputable. --Sir T. Browne. -- {In*con`tro*ver"ti*ble*ness}, n. -- {In*con`tro*ver"ti*bly}, adv. web1913
incontrovertible adj 1: impossible to deny or disprove; "incontrovertible proof of the defendant's innocence"; "proof positive"; "an irrefutable argument" [syn: {irrefutable}, {positive}] 2: necessarily or demonstrably true; "demonstrable truths" [syn: {demonstrable}] wn

refers to

meta

 
 
Thursday, February 07 2002 ←  → Saturday, February 09 2002