Re: using HTML::FromText

2005-06-20 Thread Ing. Branislav Gerzo
Owen [O], on Tuesday, June 21, 2005 at 14:56 (+1000) typed the following: O> my $text = '/data/PerlScripts/test.txt'; this is your text you'd like to convert, or it is textfile, where you have content you'd like to convert ? I think the 2nd option is right, so you need to: my $file = '/d

using HTML::FromText

2005-06-20 Thread Owen
Could someone tell me how I am not using the HTML::FromText module correctly This is more or less copied from the documentation but does not produce html? TIA Owen #!/usr/bin/perl use HTML::FromText; use strict; my $text = '/data/PerlScripts/test.txt'; my $h

Re: where to get perldoc Net::Telnet? missing in the perldoc from perldoc.perl.org

2005-06-20 Thread Wijaya Edward
Which version are you using? Check the standard CPAN site, you will find: http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm HtH -- Regards, Edward WIJAYA SINGAPORE - Original Message - From: MEENA SELVAM <[EMAIL PROTECTED]> Date: Tuesday, June 21, 2005 12:29 pm Subject: w

where to get perldoc Net::Telnet? missing in the perldoc from perldoc.perl.org

2005-06-20 Thread MEENA SELVAM
Hi, I do not have the Net::Telnet in the perldoc i downloaded from perldoc.perl.org. even http://perldoccom/cspan/Net/Telnet.Html page is not working meena __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://ma

Re: RegEx Multi-Line Matching

2005-06-20 Thread John W. Krahn
Jeff Westman wrote: Hello Fellow Perlites, Hello, I'm having difficulty parsing a file and could use some help here. I've attached my code, output file, and sample job run. Basically, I want to read an Oracle TNS file (tnsnames.ora) and list the host name and service on that server based on

Re: regex: working with parts of strings several times over..

2005-06-20 Thread Willy West
> You want a look-ahead: > >$data =~ s{ > <(.+?)> # <, then one or more characters ($1), then > > (.*?)# zero or more characters ($2) > (?= <.+?> ) # look ahead for '<...>' (but don't actually match it) >}{<$1>$2}xg; aah... this is a very useful part of regula

Re: object oriented programming in perl

2005-06-20 Thread Randal L. Schwartz
> "Wiggins" == Wiggins d'Anconia <[EMAIL PROTECTED]> writes: Wiggins> Unless you are already familar with OOP concepts you are Wiggins> better off with the LPORM book than Conway's, as Object Wiggins> Oriented Perl is more difficult to read without already Wiggins> knowing a lot of the OOP te

Re: Regex Multi-Line Matching

2005-06-20 Thread Chris Devers
On Mon, 20 Jun 2005, Jeff Westman wrote: > Any help would be greatly appreciated. We heard you the first two times. Please stop spamming the list with the same question. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Regex Multi-Line Matching

2005-06-20 Thread Jeff Westman
My problem is simple. I want to parse an Oracle TNS file, listing host and the service it provides. A sample TNS entry is multi-lined and looks like this: mysprdtmp = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mxr)(PORT = 1521)) ) (CONNECT_DATA =

Re: regex: working with parts of strings several times over..

2005-06-20 Thread Jeff 'japhy' Pinyan
On Jun 20, Willy West said: here is the original: willy needs to take a nap [EMAIL PROTECTED] here is the result that I want: willy needs to take a nap [EMAIL PROTECTED] if i have the whole thing in one variable $data, then $d

RegEx Multi-Line Matching

2005-06-20 Thread Jeff Westman
Hello Fellow Perlites, I'm having difficulty parsing a file and could use some help here. I've attached my code, output file, and sample job run. Basically, I want to read an Oracle TNS file (tnsnames.ora) and list the host name and service on that server based on this input file. A sample TNS e

Regex Multi-Line Match

2005-06-20 Thread Jeff Westman
Hello Fellow Perlites, I'm having difficulty parsing a file and could use some help here. I've attached my code, output file, and sample job run. Basically, I want to read an Oracle TNS file (tnsnames.ora) and list the host name and service on that server based on this input file. A sample TNS

RE: change char, keep case

2005-06-20 Thread Luke, David
Several people have addressed the problem of forcing the first character of a string to be uppercase, but the problem as presented is more difficult. I don't have a solution, but I may be able to clarify the problem.   We do not wish to force the first character to be uppercase. We wish t

regex: working with parts of strings several times over..

2005-06-20 Thread Willy West
here is the original: willy needs to take a nap [EMAIL PROTECTED] here is the result that I want: willy needs to take a nap [EMAIL PROTECTED] if i have the whole thing in one variable $data, then $data =~ s/<(.+?)

Re: Best practice when using data from external files

2005-06-20 Thread Wiggins d'Anconia
Dale wrote: > Hi Wiggins d'Anconia, you wrote : > >> Dale wrote: >> [snip] >> >>> >>> I think a bit of background is needed. I work for the helpdesk of an >>> ISP. The space I've got is a staff account which mirrors the service >>> the residential customers receive. It's got a cgi-bin (of cours

Re: object oriented programming in perl

2005-06-20 Thread Wiggins d'Anconia
Randal L. Schwartz wrote: >>"Aditi" == Aditi Gupta <[EMAIL PROTECTED]> writes: > > > Aditi> I've been doing some general perl coding(not too complicated) > Aditi> for past some time but now i want to learn the object oriented > Aditi> way of programming. I've several books including Perl cook

Re: object oriented programming in perl

2005-06-20 Thread Randal L. Schwartz
> "Aditi" == Aditi Gupta <[EMAIL PROTECTED]> writes: Aditi> I've been doing some general perl coding(not too complicated) Aditi> for past some time but now i want to learn the object oriented Aditi> way of programming. I've several books including Perl cookbook, Aditi> Programming Perl and Beg

Efficiently search in large files?

2005-06-20 Thread Nan Jiang
Hi all, I'm developing a simple search engine under cgi-bin of a webserver. The problem is my database is a single 2GB xml file, when I use XML:Twig to maintain searching in the file, it usually takes a v.long time to process and I can't terminate it by just closing web explorer (the perl proc

RE: object oriented programming in perl

2005-06-20 Thread Thomas Bätzler
Aditi Gupta <[EMAIL PROTECTED]> asked: > I've been doing some general perl coding(not too complicated) > for past some time but now i want to learn the object > oriented way of programming. I've several books including > Perl cookbook, Programming Perl and Beginning Perl (by Simon > Cozens).. b

object oriented programming in perl

2005-06-20 Thread Aditi Gupta
Hi everybody, I've been doing some general perl coding(not too complicated) for past some time but now i want to learn the object oriented way of programming. I've several books including Perl cookbook, Programming Perl and Beginning Perl (by Simon Cozens).. but now i'm confused which one to re