bruce wrote:
> hi...
> 
> i'm considering a C based project were i might have to do some
> file/text/html parsing.. given the nature of perl, i'd prefer to do any
> file/text parsing using perl's regex strength...
> 
> can someone tell me what's the prefered method of returing information from
> a perl app to a C app...
> 
> ie if foo has something like
>  abc =  system `perl cat.pl "att1, att2"`
> 
> how would i return an array/list of items from cat.pl into foo...

This seems unnecessary. Perfectly good C regexp routines are readily 
available; indeed, you very likely have a set built-in. They're a little 
harder to work with than Perl regexps are, but they're normally much 
easier to handle than C-to-Perl bridging is.

If, on the other hand, you want to parse HTML, don't use regexps (except 
as a low-level tool). There is software readily available to do the job, 
which is non-trivial.

-- 
John W. Kennedy
"The blind rulers of Logres
Nourished the land on a fallacy of rational virtue."
   -- Charles Williams.  "Taliessin through Logres: Prelude"

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to