Re: NSTask, Perl, HTML
Re: NSTask, Perl, HTML
- Subject: Re: NSTask, Perl, HTML
- From: Michael Latta <email@hidden>
- Date: Wed, 14 Jan 2004 13:13:06 -0800
You can certainly open a pipe to the NSTask standard input and write
the HTML content to that pipe. Then do the same for the output of the
task. This can handle large amounts of data without an issue. I have
one that does megabytes this way. Mine is not Perl, but that should
not matter.
Michael
On Jan 14, 2004, at 3:50 PM, Kevin Wojniak wrote:
My program currently does parsing of HTML through some Objective-C and
PHP (loaded off a server).
I want to be able to parse content out of HTML using Perl, but here's
my problem. I want the Cocoa program to manage downloading the HTML
(through CURLHandle), then it passes to a Perl script the HTML data,
and the Perl script returns the parsed string. But how would I pass a
huge HTML document through NSTask to a Perl script...and if I could,
would there be any memory issues or what not?? (maybe this is simple
and I'm just a noob..)
Thanks,
Kevin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.