in reply to Graphviz output straight to browser

Having just read the documentation for GraphViz.pm I don't see anything technically wrong with the portion of your code that deals with GraphViz.pm. There *is* one thing, but it's commented out: The documentation for GraphViz doesn't make any mention of _as_debug being a valid method. But as I mentioned, that's commented out, so I don't see that as the issue.

However, the documentation does show a completely different way of outputting the image (besides print). Out of curiosity, what happens if you use one of the other output constructs recommended:

$g->as_jpeg(\*STDOUT);
...immediately following your binmode call?

As a last resort, comment out your "print "content-type: image/jpeg\n\n";", and instead, output a 'text/html' header at the top of the program. Then put a 'print "Just completed add_node('london'....";' after each GraphViz method call to see which call in particular is causing the "hang".

Update: Ugh, how could I have missed seeing that the shebang line is wrong? I didn't even look at it. PodMaster++ for spotting it.


Dave


"If I had my life to live over again, I'd be a plumber." -- Albert Einstein

Replies are listed 'Best First'.
Re: Re: Graphviz output straight to browser
by tperdue (Sexton) on Oct 26, 2003 at 13:34 UTC
    Dave, Thanks for the information. I'll give it a try. By the way I do have #!d:\perl\bin\perl.exe as my first line. I missed the # when I copied and pasted the code.