Problem with HTML::TreeBuilder and look_down()

2010-06-14 Thread Craig
Hello All, I'm new to Perl, having only a week or twos experience, but experienced in other programming languages. I'm writing a script that will read a html file from disc and print the relevant parts for me. I have many html files all of them have a similar format, but some format variations ar

Conditionally use

2010-06-14 Thread kenTk
How can I conditionally use a module? I have a script that I wish to run on Linux and Windows (activestate 5.8.8). Under windows it will produce an xl spreadsheet and a comma-separated text file. I haven't found an xl module for Linux so I will simple omit that function and produce only the CSV. Th

Re: A subroutine to find every occurrence of a substring in a string?

2010-06-14 Thread C.DeRykus
On Jun 12, 7:40 pm, chas.ow...@gmail.com ("Chas. Owens") wrote: > On Sat, Jun 12, 2010 at 22:18, Randal L. Schwartz > wrote:>> "Peng" == Peng Yu writes: > > > Peng> I can't find an existing perl subroutine (in the library) to find > > Peng> every occurrence of a substring in a string. The fo

Re: Conditionally use

2010-06-14 Thread Uri Guttman
> "k" == kenTk writes: k> How can I conditionally use a module? you normally can't but you don't need to call use here. k> I haven't found an xl module for Linux so I will simple omit that k> function and produce only the CSV. k> The problem is to stop Linux complaining about: k>

Re: Conditionally use

2010-06-14 Thread Peter Scott
On Mon, 14 Jun 2010 11:23:34 -0700, kenTk wrote: > How can I conditionally use a module? perldoc if -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ http://www.informit.com/store/product.aspx?isbn=0137001274 http://www.oreillyschool.com/courses/perl1/ -- To unsubscri