Re: parsing website

2013-02-26 Thread David Christensen
On 02/26/13 10:46, Noah wrote: I want to parse text from a website. what are some good methods and modules to do this? Any tutorial links? "Perl & LWP" is the canonical book on the subject: http://shop.oreilly.com/product/9780596001780.do HTH, David -- To unsubscribe, e-mail: begin

Re: parsing website

2013-02-26 Thread Jim Gibson
On Feb 26, 2013, at 10:46 AM, Noah wrote: > Hi there, > > I want to parse text from a website. what are some good methods and modules > to do this? Any tutorial links? I am currently using LWP::UserAgent to scrape some websites and HTML::TokeParser and HTML::TableExtract to extract links an

Re: Line Endings

2013-02-26 Thread Brian Fraser
On Mon, Feb 25, 2013 at 2:38 PM, Brandon McCaig wrote: > On Sun, Feb 24, 2013 at 11:17:40PM -0300, Brian Fraser wrote: >> my $over = ''; >> while ( sysread( $fh, $over, 8192, length($over) ) ) { >> while ( $over =~ /\R/ ) { >> my $line = encode('UTF-8', substr($over, 0, $+[0], '')); > >

Re: parsing website

2013-02-26 Thread Mike
On 2/26/2013 1:46 PM, Noah wrote: Hi there, I want to parse text from a website. what are some good methods and modules to do this? Any tutorial links? Cheers WWW::Mechanize http://search.cpan.org/dist/WWW-Mechanize/lib/WWW/Mechanize.pm -- To unsubscribe, e-mail: beginners-unsubscr...@

parsing website

2013-02-26 Thread Noah
Hi there, I want to parse text from a website. what are some good methods and modules to do this? Any tutorial links? Cheers -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: problem about run perl script in java

2013-02-26 Thread Dr.Ruud
On 2013-02-26 08:48, yunbin wang wrote: Now , I want run perl script in java, but I can't install perl on the machine, only I can copy the perl files(those installed on other machine) to that machine. so how can I initial perl INC in java that I can run perl in my java program? Can you run Ja

Re: problem about run perl script in java

2013-02-26 Thread Luca Ferrari
I've never used, but this should be what you are looking for: http://search.cpan.org/dist/Inline-Java/Java/PerlInterpreter/PerlInterpreter.pod Anyway, I suspect if you cannot install a Perl version on the machine you will not succeed in running Perl from Java. Luca On Tue, Feb 26, 2013 at 8:48 A