Fwd: cgi Pain!!!

2007-10-05 Thread Pat Rice
hi all have the following problem I cannot for the life of me get the following working: 28 testing the header 29 print header; 30 print start_html(Thank You); 31 print h2(Thank You); 32 33 my $i; 34 foreach $i (@vmsupportTest) 35 { 36print

Perl OBDC Segmentation fault

2007-10-05 Thread [EMAIL PROTECTED]
Hi all, I have a script about query record from MS Access database. This database contains a table named Lengths. The list of field names is Sample_ID, Taxon_ID, Lenght. Question is coming: 1. When I use the query command: select * from Lengths It works well! 2. When I use the query command:

Re: Perl OBDC Segmentation fault

2007-10-05 Thread Rob Coops
That should be: PERL_DL_NONLAZY=1 (fat fingers or a slow brain, quite possibly both, cause me to make those kinds of mistakes) On 10/5/07, Rob Coops [EMAIL PROTECTED] wrote: Here is one solution that seems to work for me. Set the following environment variable: PERL_DL_NOnLAZY=1 The

Re: Perl OBDC Segmentation fault

2007-10-05 Thread Jeff Pang
2007/10/4, [EMAIL PROTECTED] [EMAIL PROTECTED]: 2. When I use the query command: select * from Lengths where Taxon_ID =1 It gives the following: 18-1-16 23-1-17 23-1-15 23-1-14 24-1-15 Segmentation fault 3. When I use the query command: select * from Lengths where Sample_ID = 1 The

Display test in MAN page way

2007-10-05 Thread Sundeep
I have a script to do several operations, based on the various options provided from command line. For that I have created the help text (script.pl --help). The text is huge (exceeding 1 page) and I can not cut down on that. So when users (one who uses my script) asks for help, it just scrolls

Perl OBDC Segmentation fault

2007-10-05 Thread [EMAIL PROTECTED]
Hi all, I have a script about query record from MS Access database. This database contains a table named Lengths. The list of field names is Sample_ID, Taxon_ID, Lenght. Question is coming: 1. When I use the query command: select * from Lengths It works well! 2. When I use the query command:

Re: Display test in MAN page way

2007-10-05 Thread John W. Krahn
Sundeep wrote: I have a script to do several operations, based on the various options provided from command line. For that I have created the help text (script.pl --help). The text is huge (exceeding 1 page) and I can not cut down on that. So when users (one who uses my script) asks for help,

Weird Regular expression.

2007-10-05 Thread ash
Hello fellow scripters! I've come across weird regex like this: (.{4}).(.{21}).(.{3})..(.{3}). (.{10}).(.{9}). Has anyone any idea about the syntax of these regex? Thank you for your help. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Weird Regular expression.

2007-10-05 Thread John W. Krahn
ash wrote: Hello fellow scripters! Hello, I've come across weird regex like this: (.{4}).(.{21}).(.{3})..(.{3}). (.{10}).(.{9}). Has anyone any idea about the syntax of these regex? Thank you for your help. The period (.) matches any character except the newline character unless the /s

Re: How to reinvent grep in perl?

2007-10-05 Thread John W. Krahn
siegfried wrote: ?? wrote: siegfried wrote: I need to search large amounts of source code and grep is not doing the job. The problem is that I keep matching stuff in the comments of the C++/Java/Perl/Groovy/Javascript source code. Can someone give me some hints on where I might start

Re: Compare two files

2007-10-05 Thread Jeff Pang
2007/10/5, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi I would like to compare two files by comparing the files dates. If one file shows ls -la May 12 2003 filename and the other name shows the same date they are OK for me (I'm not interested in the time part only the date of the file) But if

Compare two files

2007-10-05 Thread fredrik . y . andersson
Hi I would like to compare two files by comparing the files dates. If one file shows ls -la May 12 2003 filename and the other name shows the same date they are OK for me (I'm not interested in the time part only the date of the file) But if the dates are not the same I would like to copy one of

Re: Compare two files

2007-10-05 Thread Jeff Pang
2007/10/5, Jeff Pang [EMAIL PROTECTED]: 2007/10/5, [EMAIL PROTECTED] [EMAIL PROTECTED]: How do I do this in Perl? Hi, if ( int(-M file1.txt) != int(-M file2.txt) ) { # copy the file } Forgot to tell you what's -M in perl,from `perldoc perlfunc`: -M Script start time minus file

Re: How to install perl Expect module under cygwin

2007-10-05 Thread Javi
On Sep 23, 3:01 pm, [EMAIL PROTECTED] (Juan Pablo Feria Gomez) wrote: Try installing manually IO::Pty before... I have no problems compiling with cl.exe, but i canĀ“t install this module. cl.exe works fine, paths are ok. any suggest? Thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Compare two files

2007-10-05 Thread Gunnar Hjalmarsson
Jeff Pang wrote: 2007/10/5, [EMAIL PROTECTED] [EMAIL PROTECTED]: I would like to compare two files by comparing the files dates. If one file shows ls -la May 12 2003 filename and the other name shows the same date they are OK for me (I'm not interested in the time part only the date of the

Re: Compare two files

2007-10-05 Thread Jeff Pang
2007/10/5, Paul Lalli [EMAIL PROTECTED]: On Oct 5, 7:50 am, [EMAIL PROTECTED] (Jeff Pang) wrote: 2007/10/5, [EMAIL PROTECTED] [EMAIL PROTECTED]: I would like to compare two files by comparing the files dates. If one file shows ls -la May 12 2003 filename and the other name shows

Re: Compare two files

2007-10-05 Thread Paul Lalli
On Oct 5, 7:50 am, [EMAIL PROTECTED] (Jeff Pang) wrote: 2007/10/5, [EMAIL PROTECTED] [EMAIL PROTECTED]: I would like to compare two files by comparing the files dates. If one file shows ls -la May 12 2003 filename and the other name shows the same date they are OK for me (I'm not

Re: Unique elements in an array

2007-10-05 Thread Rob Dixon
Paul Lalli wrote: On Oct 5, 9:09 am, [EMAIL PROTECTED] (Robert Hicks) wrote: The scenario: I have a file with ship id numbers. It gets updated several times a day (by database query) and I want to find all the new_ships that have been added to it. sub incremental_update { print Doing

Re: Unique elements in an array

2007-10-05 Thread Robert Hicks
It might matter so: I have a file with the ship numbers. I update it via a db table. If I update during the same day I only want to put the new ships into the file. Hope that is clearer. Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Unique elements in an array

2007-10-05 Thread Robert Hicks
The scenario: I have a file with ship id numbers. It gets updated several times a day (by database query) and I want to find all the new_ships that have been added to it. sub incremental_update { print Doing incremental update.\n; open $FH, '+', $ships_file or croak Cannot open

Re: Unique elements in an array

2007-10-05 Thread Paul Lalli
On Oct 5, 9:09 am, [EMAIL PROTECTED] (Robert Hicks) wrote: The scenario: I have a file with ship id numbers. It gets updated several times a day (by database query) and I want to find all the new_ships that have been added to it. sub incremental_update { print Doing incremental

cgi Pain!!!

2007-10-05 Thread Pat Rice
hi all have the following problem I cannot for the life of me get the following working: 28 testing the header 29 print header; 30 print start_html(Thank You); 31 print h2(Thank You); 32 33 my $i; 34 foreach $i (@vmsupportTest) 35 { 36print

Re: Regular expression over multiple lines issues

2007-10-05 Thread [EMAIL PROTECTED]
Thanks!!! On Sep 27, 9:05 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: [EMAIL PROTECTED] wrote: Hello, Hello, I'm having a problem with a regular expression in some code that I inherited. I'm reading from a file and looking for certain parameters (mrn, enc, date,

Re: Compare two files

2007-10-05 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi Hello, I would like to compare two files by comparing the files dates. If one file shows ls -la May 12 2003 filename and the other name shows the same date they are OK for me (I'm not interested in the time part only the date of the file) But if the dates are not

Re: cgi Pain!!!

2007-10-05 Thread Tom Phoenix
On 10/5/07, Pat Rice [EMAIL PROTECTED] wrote: it does work when I run it from the commnad line. What's different between the command line and the actual environment? Check that you're using the right environment variables and current working directory, at least. 19 my $variable_name =

Hello and a question about perlform

2007-10-05 Thread Niels Will
Hello together, my Name is Niels (26) and I'm from Germany being new on this mailinglist. Right now I'm writing my final examination for my apprenticeship as an IT Specialist and I have a question. My program generates multiple reports with different filenames during a foreach loop. On the

Re: Hello and a question about perlform

2007-10-05 Thread Chas. Owens
On 10/5/07, Niels Will [EMAIL PROTECTED] wrote: snip On the first file, the REPORT_TOP format is beeing used but not on the second, third, and so on one. snip Perl formats are a pain, and probably should not be used. Take a look at the Perl6::Form module for a better solution. The answer to

Re: Unique elements in an array

2007-10-05 Thread Robert Hicks
Paul Lalli wrote: On Oct 5, 9:09 am, [EMAIL PROTECTED] (Robert Hicks) wrote: The scenario: I have a file with ship id numbers. It gets updated several times a day (by database query) and I want to find all the new_ships that have been added to it. sub incremental_update { print Doing

Re: Unique elements in an array

2007-10-05 Thread Robert Hicks
Rob Dixon wrote: Paul Lalli wrote: On Oct 5, 9:09 am, [EMAIL PROTECTED] (Robert Hicks) wrote: The scenario: I have a file with ship id numbers. It gets updated several times a day (by database query) and I want to find all the new_ships that have been added to it. sub incremental_update {