Re: RegEx Multi-Line Matching

2005-06-23 Thread John W. Krahn
Jeff Westman wrote: On 6/20/05, John W. Krahn [EMAIL PROTECTED] wrote: It looks like you don't really need to use paragraph mode, this should do what you want: #!/usr/bin/perl # # tnsnames.pl -- reads tnsnames.ora, sorts by host name use warnings; use strict; my $tnsFile = 'tnsnames.ora';

Re: Regex Multi-Line Matching

2005-06-22 Thread Jeff Westman
Hey Chris, I'm not spamming anyone. I had an error when I sent my email(s) so I resent it. Sorry you had to click the mouse an additional time to 'delete'. Jeff On 6/20/05, Chris Devers [EMAIL PROTECTED] wrote: On Mon, 20 Jun 2005, Jeff Westman wrote: Any help would be greatly

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

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 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]

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