• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTask, Perl, HTML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSTask, Perl, HTML (From: Kevin Wojniak <email@hidden>)

  • Prev by Date: Re: NSTask, Perl, HTML
  • Next by Date: Re: NSTask, Perl, HTML
  • Previous by thread: Re: NSTask, Perl, HTML
  • Next by thread: Re: NSTask, Perl, HTML
  • Index(es):
    • Date
    • Thread