Re: parsing problem

2007-02-15 Thread Shiping Wang
Thank you John. I have learned a lot from you and others just by following this 'Perl Beginners' list'. Shiping At 02:00 PM 2/15/2007, John W. Krahn wrote: Shiping Wang wrote: > Hi, Hello, > I wrote a parsing script, it is working but give me some error message > at beginning: Use of uniniti

Re: parsing problem

2007-02-15 Thread John W. Krahn
Shiping Wang wrote: > Hi, Hello, > I wrote a parsing script, it is working but give me some error message > at beginning: Use of uninitialized value in concatenation (.) or string > ... and also it gives some unwanted stuff. To get around this problem, I > want to directly go to the line and star

parsing problem

2007-02-15 Thread Shiping Wang
Hi, I wrote a parsing script, it is working but give me some error message at beginning: Use of uninitialized value in concatenation (.) or string ... and also it gives some unwanted stuff. To get around this problem, I want to directly go to the line and start extract result, in this case I w

Re: huge file : parsing problem

2006-03-29 Thread Saurabh Singhvi
Hi thanks for the help!! After it worked i can't say how happy i was :). pardon me for my negligence in calling it the traditional method ;). I just meant traditional in my history :p. once again, thanks a lot Saurabh On 3/29/06, Jay Savage <[EMAIL PROTECTED]> wrote: > > On 3/29/06, Saurabh Sin

Re: huge file : parsing problem

2006-03-29 Thread Mr. Shawn H. Corey
On Wed, 2006-29-03 at 15:53 +, Saurabh Singhvi wrote: > HI there, > > I have a huge file (~7GB) of text data. I need to parse it to extract > something : basically minima and maxima, and then i need to quantify > the data into an output file based on ranges. > > Now the problem is that the tr

huge file : parsing problem

2006-03-29 Thread Saurabh Singhvi
HI there, I have a huge file (~7GB) of text data. I need to parse it to extract something : basically minima and maxima, and then i need to quantify the data into an output file based on ranges. Now the problem is that the traditional method of opening and foreach which is as follows: open(FILE,

Re: Parsing problem

2003-12-12 Thread drieux
On Dec 12, 2003, at 6:50 AM, Larry Sandwick wrote: [..] I thought it would be done with hashes and every time I get into hashes I get a headache. I do see that I have much to learn about Perl especially hashes. Ok, let's go back over what has been played so far. John has offered One way towards the

RE: Parsing problem

2003-12-12 Thread Larry Sandwick
ECTED] Sent: Thursday, December 11, 2003 6:22 PM To: Perl Perl Subject: Re: Parsing problem On Dec 11, 2003, at 12:27 PM, Larry Sandwick wrote: > With the little amount of Perl that I know, I have come to a dilemma. I > do not know how to parse this file so in column 1 (24165) is the number

Re: Parsing problem

2003-12-11 Thread drieux
out, I wish to start by tipping my Hat!!! Most Well Played! { or DoublePlusMoGooder... 8-) } I suck, you Rule! - I really should have stepped back and looked more at the data than the simpler parsing problem... clearly this is a db_conversion_tool problem, but doing it from these types of Yuk, Yuk

Re: Parsing problem

2003-12-11 Thread R. Joseph Newton
drieux wrote: > > Still think you should shoot who EVER came up with > the original file format... > > HTH > > ciao > drieux Now, now, no need for violence. Perhaps seeking a commitment order, but no violence, please! Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: Parsing problem

2003-12-11 Thread R. Joseph Newton
Larry Sandwick wrote: > > I know I can split the file on "|" but because the data is not > consistent and my skill set is limiting me to re-parse this file into a > file I can upload into MySql Just Don't Do It. This data is not ready for entry into a database. MySQL is an RDBMS engine, and RDB

Re: Parsing problem

2003-12-11 Thread drieux
On Dec 11, 2003, at 12:27 PM, Larry Sandwick wrote: With the little amount of Perl that I know, I have come to a dilemma. I do not know how to parse this file so in column 1 (24165) is the number duplicate for every item number in the list. I also need in the 2 column (O185850) to duplicate itse

Re: Parsing problem

2003-12-11 Thread John W. Krahn
Larry Sandwick wrote: > > With the little amount of Perl that I know, I have come to a dilemma. I > do not know how to parse this file so in column 1 (24165) is the number > duplicate for every item number in the list. I also need in the 2 > column (O185850) to duplicate itself for every item. T

Parsing problem

2003-12-11 Thread Larry Sandwick
With the little amount of Perl that I know, I have come to a dilemma. I do not know how to parse this file so in column 1 (24165) is the number duplicate for every item number in the list. I also need in the 2 column (O185850) to duplicate itself for every item. The 3rd item (05/30/03)needs to fo

Re: list-parsing problem

2003-10-06 Thread Steve Grazzini
On Tue, Oct 07, 2003 at 01:09:26AM +0200, Kevin Pfeiffer wrote: > I just noticed that: > > print join ", ", @list, "\n"; > > produces output such as: > > a, > a, b, c, > > whereas: > > print join(", ", @list), "\n"; > > produces: > > a > a, b, c > > (no trailing comma) -- strange... I think

RE: list-parsing problem

2003-10-06 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Thomas bätzler wrote: > Marcus Claesson [mailto:[EMAIL PROTECTED] asked: >> I have a silly little list-parsing problem that I can't get my head >> around, and I'm sure some of you have come across it before. > > Sure. Looks lik

Re: list-parsing problem

2003-09-19 Thread John W. Krahn
Marcus Claesson wrote: > > Hi People, Hello, > I have a silly little list-parsing problem that I can't get my head > around, and I'm sure some of you have come across it before. > > I have a list like this: > > 1 a > 2 b > 2 c > 3

RE: list-parsing problem

2003-09-19 Thread EUROSPACE SZARINDAR
[EMAIL PROTECTED] Objet: RE: list-parsing problem Homework's sorted ;)! Thanks a lot Thomas, it worked fine! Marcus On Thu, 2003-09-18 at 10:41, Thomas Bätzler wrote: > Marcus Claesson [mailto:[EMAIL PROTECTED] asked: > > I have a silly little list-parsing problem that I can't g

RE: list-parsing problem

2003-09-19 Thread Thomas Bätzler
Marcus Claesson [mailto:[EMAIL PROTECTED] asked: > I have a silly little list-parsing problem that I can't get my head > around, and I'm sure some of you have come across it before. Sure. Looks like homework ;-) HTH, Thomas #!/usr/bin/perl -w use strict; my %unique; while

RE: list-parsing problem

2003-09-19 Thread EUROSPACE SZARINDAR
Objet: list-parsing problem Hi People, I have a silly little list-parsing problem that I can't get my head around, and I'm sure some of you have come across it before. I have a list like this: 1 a 2 b 2 c 3 a 4 d 4 d 4 e 4 f 5 g and

Re: list-parsing problem

2003-09-18 Thread Gary Stainburn
On Thursday 18 Sep 2003 10:26 am, Marcus Claesson wrote: > Hi People, > > I have a silly little list-parsing problem that I can't get my head > around, and I'm sure some of you have come across it before. > > I have a list like this: > > 1 a > 2 b &g

RE: list-parsing problem

2003-09-18 Thread Charles K. Clarkson
Marcus Claesson <[EMAIL PROTECTED]> : : But I just have one question before trying it out. : Isn't the key order in a hash randomised, which in : this case means I wouldn't get first column in : numerical order as I wanted? You didn't state what order in the problem not did you say that the f

RE: list-parsing problem

2003-09-18 Thread Marcus Claesson
Homework's sorted ;)! Thanks a lot Thomas, it worked fine! Marcus On Thu, 2003-09-18 at 10:41, Thomas Bätzler wrote: > Marcus Claesson [mailto:[EMAIL PROTECTED] asked: > > I have a silly little list-parsing problem that I can't get my head > > around, and I'm sure s

RE: list-parsing problem

2003-09-18 Thread Charles K. Clarkson
Marcus Claesson <[EMAIL PROTECTED]> wrote : : I have a silly little list-parsing problem that I can't get : my head around, and I'm sure some of you have come across : it before. : : I have a list like this: : : 1 a : 2 b : 2 c : 3 a : 4 d : 4 d : 4

RE: list-parsing problem

2003-09-18 Thread Marcus Claesson
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Objet: list-parsing problem > > > Hi People, > > I have a silly little list-parsing problem that I can't get my head > around, and I'm sure some of you have come across it before. > > I have a list like this: &

RE: list-parsing problem

2003-09-18 Thread Stephen Hardisty
Two dimensional hash perhaps? Where the first column is the first dimension and the second is, well, the second. E.g. while() { ($col1, $col2) = split(/$delimeter/, chomp($_)); $blah{$col1}{$col2} = 1; } Hope this helps. _

list-parsing problem

2003-09-18 Thread Marcus Claesson
Hi People, I have a silly little list-parsing problem that I can't get my head around, and I'm sure some of you have come across it before. I have a list like this: 1 a 2 b 2 c 3 a 4 d 4 d 4 e 4 f 5 g and I want to make the first

Re: Parlsax parsing problem

2003-08-22 Thread Todd W.
"Kurt Klinner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > while trying to parse a "large" XML document i found a > strange behaviour of the Parser Module(s) (XML::Parser:PerlSAX, > XML::Parser, XML::Parser::Expat > > If my file XML file is larger then 65536 bytes > th

Re: Parlsax parsing problem

2003-08-22 Thread Rob Anderson
"Kurt Klinner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > while trying to parse a "large" XML document i found a > strange behaviour of the Parser Module(s) (XML::Parser:PerlSAX, > XML::Parser, XML::Parser::Expat > > If my file XML file is larger then 65536 bytes > th

Parlsax parsing problem

2003-08-22 Thread Kurt Klinner
Hello, while trying to parse a "large" XML document i found a strange behaviour of the Parser Module(s) (XML::Parser:PerlSAX, XML::Parser, XML::Parser::Expat If my file XML file is larger then 65536 bytes the actual character string is interrupted and a whitespace is added. For Example

Re: HTML::TokeParser/Parsing problem

2002-11-25 Thread Jeff 'japhy' Pinyan
On Nov 25, sulfericacid said: >#!/usr/local/bin/perl -w > >my %form; >my $content; > >my $userurl = $form{'userurl'}; Where do you think %form gets populated? You want to use the CGI.pm module: use CGI 'param'; my $userurl = param('userurl'); >print "Content-type: text/html\n\n"; > >use di

Re: HTML::TokeParser/Parsing problem

2002-11-25 Thread sulfericacid
Ok, late last night I realised the semi colons were missing among a few other small details. Since then I repaired all of them and ran a debbuger, but it came back clean. I uploaded and tried to run it on the webserver, but it doesn't print anything. The script doesn't display any errors or logf

Re: HTML::TokeParser/Parsing problem

2002-11-25 Thread Ovid
--- sulfericacid <[EMAIL PROTECTED]> wrote: > use HTML::TokeParser > my $p = HTML::TokeParser->new(\$content); > > my %meta; > while (my $token = $p->get_token) { > next unless $token->[1] eq 'meta' && $token->[0] eq 'S'; > $meta{$token->[2]->{name}} = $token->[2]{content}; > } >

Re: HTML::TokeParser/Parsing problem

2002-11-25 Thread Bob Rasey
On Mon, 2002-11-25 at 11:30, Jeff 'japhy' Pinyan wrote: > On Nov 24, sulfericacid said: > > >use LWP::Simple > >use HTML::TokeParser > > You're missing semi-colons after those two 'use' statement.s And while you're at it: $username =~ s/e/u/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: HTML::TokeParser/Parsing problem

2002-11-25 Thread Jeff 'japhy' Pinyan
On Nov 24, sulfericacid said: >use LWP::Simple >use HTML::TokeParser You're missing semi-colons after those two 'use' statement.s -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ what does

HTML::TokeParser/Parsing problem

2002-11-25 Thread sulfericacid
I just joined this newgroup so if I am posting in the wrong place, please let me know nicely rather than bashing me for the inexperience ALL of you once had. I have a problem with my script listed below. Any help would be GREATLY appreciated!! sulfericacid The errors I receive are: 1 Un