Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of jjore (6662)

Wednesday January 03, 2007
12:01 PM

Wasted a night in the merry old land of Oz (the language)

[ #32061 ]

I spent most of last night struggling to figure out how to do the equivalent of XMLin( get( $url ) ) in Mozart/Oz and getting frustrated because the interpreter would just "hang." It turns out this only happens when I run it on Windows and not on Linux. Arrrrgh!

functor
import
   Application
   Open
   Parser at 'x-oz://system/xml/Parser.ozf'
define
   Url XmlParser Doc Fd
in
   Url = 'http://perlmonks.org/?node_id=207304'
 
   % Hangs on Windows.
   Fd = {New Open.file init(url:Url flags:[read])}
 
   % Commented out for testing. Also hangs on Windows
   % XmlParser = {New Parser.parser init}
   % {XmlParser parseURL(Url Doc)}
 
   {Application.exit 0}
end

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.