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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
[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
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
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
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
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
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
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
> 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:
&
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.
_
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
"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
"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
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
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
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
--- 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};
> }
>
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
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
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
36 matches
Mail list logo