Perl modules

2005-06-24 Thread feanor
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everybody ! I've a problem with PERL modules, and it's quite hard to explain ! Well, I'm going to try ! For my personnal use, I looking after a way to create a local client for web forum (like pgpbb's one). So I have a main program and several

Re: Perl Hash Question.

2005-06-24 Thread Xavier Noria
On Jun 24, 2005, at 5:07, Anthony Roe wrote: A = Reads URI from URIHASH. Visits site A. Parses all URIS on site A and for each URI found adds the URI to the URIHASH. A = Reads next URI from URIHASH. Visits site A. And so on... until the MAX URIHASH size is reached. My question is, is

A file-handle query

2005-06-24 Thread Prasad J Pandit
Hello there! I'm a novice perl programmer and I'm trying to pass a File-Handle to two different subroutines one after the other as follows #!/usr/bin/perl -w use strict; my $FH; open($FH, filename) || die Could not open file! \n; func_one(\*$FH); func_two(\*$FH); exit(0); sub func_one {

Re: how to append blocks in same file

2005-06-24 Thread Aditi Gupta
hello everybody, first of all i'd like to thank all of you for your time and help.. but i'm still stuck!! The code which Dave sent: my @blocks = (); my $maxlen = 0; while (DATA) { chomp; if (/^#/) { push @blocks, []; } elsif ($_) { push @{$blocks[$#blocks]}, $_; my $len =

Re: A file-handle query

2005-06-24 Thread John W. Krahn
Prasad J Pandit wrote: Hello there! Hello, I'm a novice perl programmer and I'm trying to pass a File-Handle to two different subroutines one after the other as follows #!/usr/bin/perl -w use strict; my $FH; $FH is a scalar variable. open($FH, filename) || die Could not open file! \n;

Re: how to append blocks in same file

2005-06-24 Thread John W. Krahn
Aditi Gupta wrote: On 6/23/05, John W. Krahn [EMAIL PROTECTED] wrote: Aditi Gupta wrote: I have a file as follows: #block1 aaa aaa #block2 bbb bbb #block3 ccc ccc and i want to append(or i should say merge) these blocks and get a file like this: aaabbbccc aaabbbccc how can this be

Re: A file-handle query

2005-06-24 Thread Jeff 'japhy' Pinyan
On Jun 24, John W. Krahn said: Prasad J Pandit wrote: I'm a novice perl programmer and I'm trying to pass a File-Handle to two different subroutines one after the other as follows Just use the scalar: func_one($FH); func_two($FH); At the end of reading the file, if you want to rewind it,

Matching records in columns

2005-06-24 Thread Pablo Wolter
Hi, I was searching how to do this but I have no idea if it is possible in perl. I have data like this: col1 col2 col3 col4 row1a b row2 row3c I need to extract only the name of the col (for example col3) and the data that col has (b in this case) only

Re: search a file

2005-06-24 Thread Eliyah Kilada
Hi, Here's a question that I need its answer whenever u have time for it (i.e., give it a lower priority): How can I load verilog files and simulate them by modelsim from the perl script or from the terminal shell. Any help will be highly appreciated, Thanks And Regards, Eliyah -- To

Re: search a file

2005-06-24 Thread Chris Devers
On Fri, 24 Jun 2005, Eliyah Kilada wrote: Here's a question that I need its answer whenever u have time for it (i.e., give it a lower priority): How can I load verilog files and simulate them by modelsim from the perl script or from the terminal shell. Any help will be highly appreciated,

escaping in CGI.pm

2005-06-24 Thread Scott Taylor
Grr... Arg... Hello all, I'm working on my first Perl/CGI database app and run into a bit of a snag: http://myserver/lseid.cgi?LeaseOPID=ADT89theCmd=EditIt this line finds the right data however, everything after the in the LeaseOPID ($row-{leaseopid}) ADT89 gets truncated in this form line:

Re: escaping in CGI.pm

2005-06-24 Thread Joshua Colson
Scott, You're trying to use an ampersand in your URL. Ampersands are special characters in URLs so you must escape it if you want it to be passed as the actual character instead of carrying the special meaning. See http://www.december.com/html/spec/esccodes.html On Fri, 2005-06-24 at 12:51

Re: escaping in CGI.pm

2005-06-24 Thread Scott Taylor
Joshua Colson said: Scott, You're trying to use an ampersand in your URL. Ampersands are special characters in URLs so you must escape it if you want it to be passed as the actual character instead of carrying the special meaning. See http://www.december.com/html/spec/esccodes.html As I

Re: Matching records in columns

2005-06-24 Thread Chris Devers
On Fri, 24 Jun 2005, Pablo Wolter wrote: I was searching how to do this but I have no idea if it is possible in perl. All things are possible :-) Well okay maybe not *all*, but if you can describe in detail what you want to do, you can, in general, find a way to make it work in almost any

Re: Matching records in columns

2005-06-24 Thread Pablo Wolter
Chris Devers wrote: On Fri, 24 Jun 2005, Pablo Wolter wrote: I was searching how to do this but I have no idea if it is possible in perl. All things are possible :-) Well okay maybe not *all*, but if you can describe in detail what you want to do, you can, in general, find a way to

Re: Critcize my scripts.

2005-06-24 Thread loan tran
Thank you John and Wiggins for your time and feedbacks. Loan --- John W. Krahn [EMAIL PROTECTED] wrote: loan tran wrote: Please critize my scripts and suggest better ways to accomplish the same task. (I know it's a good practice to put use strict in Perl script but I'm struggling

Re: escaping in CGI.pm

2005-06-24 Thread Wiggins d'Anconia
Scott Taylor wrote: Joshua Colson said: Scott, You're trying to use an ampersand in your URL. Ampersands are special characters in URLs so you must escape it if you want it to be passed as the actual character instead of carrying the special meaning. See