Re: Creating a new query object from an input file

2001-08-21 Thread Greg Matheson
On Tue, 31 Jul 2001, Greg Matheson wrote: > I'm NOT able to use this: > CREATING A NEW QUERY OBJECT FROM AN INPUT FILE > $query = new CGI(INPUTFILE); > With the code: > #!/usr/local/bin/perl -w > use CGI; > open (OUT,">/home/greg/test.out") or die "No open greg/test.out: $!"; >

split a file

2001-08-21 Thread Pedro A Reche Gallardo
Hi All, I have a file (see below) that I would like to split in three files: One file for the information under "Alignment (DIALIGN format)", another for the information under the line "Alignment (FASTA format)" and a third one for the information under sequence tree. Any help to do this will

Re: Upload script

2001-08-21 Thread Lynn Glessner
OK, I will just post the differences from the example in "CGI Programming with Perl" (rat book), if anyone wants a copy of my entire script, let me know. The example script I was using is Example 5-2. upload.cgi on pages 99-101 in the second edition. 1. Upload method my $fh = $q->upload($file);

Re: Upload script

2001-08-21 Thread Lynn Glessner
{Lights going off - bells - red lights} Someone else said the same thing and I didn't get it. Putting "file" means not passing a literal "file" but the value "file" from the html form. I see, said the blind man ... I'm definitely going to give the authors a piece of my mind - torturing poor newb

RE: Upload script

2001-08-21 Thread Bradley M. Handy
Here's what going on. # $file is now assigned the name of a file, which has been uploaded using your form. my $file = $q->param( "file" ) || error ($q, "No file received."); # the 'upload' subroutine has the same usage as 'param', but is used for file uploads. # so instead of passing $file to 'u

RE: Upload script

2001-08-21 Thread Curtis Poe
--- "Bradley M. Handy" <[EMAIL PROTECTED]> wrote: > If you have downloaded the latest version of CGI, then that may be your > problem. CGI.pm versions 3.0 and above are ALPHA code and shouldn't be used > in production environments. (I don't even use that version in test > environments.) The lat

RE: Upload script

2001-08-21 Thread Bradley M. Handy
If you have downloaded the latest version of CGI, then that may be your problem. CGI.pm versions 3.0 and above are ALPHA code and shouldn't be used in production environments. (I don't even use that version in test environments.) The latest STABLE version of CGI.pm was 2.753, but I think now it

Re: Upload script

2001-08-21 Thread Curtis Poe
--- Lynn Glessner <[EMAIL PROTECTED]> wrote: > The name of my upload file isn't literally file, it is contained in the > variable named file. I agree that the upload method is probably my problem; > someone else said it was just buggy. :( I don't necessarily know that this method is buggy. I was

Re: Upload script

2001-08-21 Thread Lynn Glessner
Hmm, how did my message end up on both lists, I meant to just send it to the CGI list? Sorry for the extra noise. But now that it's started, I'll reply to both in case people are following it. The name of my upload file isn't literally file, it is contained in the variable named file. I agree tha

Re: Upload script

2001-08-21 Thread Curtis Poe
--- Lynn Glessner <[EMAIL PROTECTED]> wrote: > I have copied a script out of "CGI programming with perl", to see if I > understand how uploading a file would work. So far it doesn't - the code > checks correctly with perl -c but then I get an internal server error 500. I > think I found a minor er

HTML Logon screen instead of Challenge/Response

2001-08-21 Thread Barrie Heck
G'day all, I am writing cgi scripts for Linux with Apache and wanted to replace the challenge/response popup logon for an on screen logon in HTML. Can anyone point me in the right direction for writing a perl script that can talk to apache to authorise user log ons. Barrie

Upload script

2001-08-21 Thread Lynn Glessner
I have copied a script out of "CGI programming with perl", to see if I understand how uploading a file would work. So far it doesn't - the code checks correctly with perl -c but then I get an internal server error 500. I think I found a minor error in the book example already :( Can anyone help? I

RE: Turning off warnings causes scripts to fail

2001-08-21 Thread Curtis Poe
It was the ^M at the end of the shebang line that was causing things to fail. Seems someone uploaded a zipped file and extracted the archive without bothering to fix the line endings! Cheers, Curtis Poe = Senior Programmer Onsite! Technology (http://www.onsitetech.com/) "Ovid" on http://w

Re: Help on script

2001-08-21 Thread Sunthari
Dear List, Perl is not my first programming language and I have some knowledge in C and VB. Anyway, I haven't done C programming for the past 2 yrs. I have the basic understanding of the beginning part of Perl and kind of blur at Regular Expression but no background on web development at all. I

Re: Help on script

2001-08-21 Thread register
I must say that I dont agree that Perl is a difficult language for a beginner .. in fact I think it is easy for a beginner .. as a matter of fact I think it is TOO easy for a beginner ... and that is why I (my personal opinion only) dont usually point beginning programmers to Perl as itis too easy

cgi handle signal ? or timer

2001-08-21 Thread cliff
Hi : I don't like to waiting for a long time for cgi respones. So,I'm thinking about the question of signal handle and set up timer for cgi. Is there anyone have the exprience of this ? I usually use : $SIG{INT} = \&logout; $SIG{ALRM} = \&timeout; for perl program Can I use them in CGI ?

Re: Help on script

2001-08-21 Thread Roger C Haslock
You say you are new to programming. Perl is not an easy language for a programming novice. Most tutorials will show you how to accomplish, in Perl, something you already know in another language. There are few tutorials on the use of modules because all well-written modules have, as part of their

Looking for a sound editing perl module

2001-08-21 Thread Nancy Chan
Hi, I'm a newbie of perl cgi. I want to find a perl module (linux) for sound editing eg concatenating n files, mixing 2 or more sound files..Please help!! Nancy ( [EMAIL PROTECTED] ) http://archive.develooper.com/beginners-cgi%4Operl.org/ ; name="" Content-Transfer-Encoding: BASE64 DQoNCi