Re: CGI

2001-01-06 Thread $Bill Luebkert
> LIBASOV IOANNIS wrote: > > Hi! > > Does anybody know how to to send .zip or .tar file using CGI script To send a .zip/.tar file, just change the content-type header to the appropriate MIME type and do a binmode on both STDOUT and the FH that you are reading the zip from. If you have proble

xs trouble on Win32 (building Win32--API).txt

2001-01-06 Thread Soren Andersen
Hello PerlWin32Users List, I am trying to compile the Perl 5 module Win32::API (http://dada.perl.it/) on WinNT4 sp6 using MinGW - gcc-2.95.2.1 and having a rough go of it with the xs code. The compilation fails because this code has an undeclared identifier: --- console output, watch for wrappi

CGI

2001-01-06 Thread LIBASOV IOANNIS
Hi!   Does anybody know how to to send .zip or .tar file using CGI script

Re: Perl CGI problem importing quotation marks into form

2001-01-06 Thread Gary Nielson
The code is as follows. First I import the file: Gary is testing this program|This is a test of html code. test ||http://www.charlotte.com/||right|| The script reads it in a splits it by the delimiter, using a subroutine listed below the html: $db_filename = "$db" . "$page\.txt"

Re: Perl CGI problem importing quotation marks into form

2001-01-06 Thread Carl Jolley
On Sat, 6 Jan 2001, Gary Nielson wrote: > Hi, > > I noticed a problem with a cgi script I am writing that generates a > form. The user fills out the form, the contents of which I use in other > programs. If the user wants to edit her form, she simply later calls up > the script using the query s

Re: -M FileHandle to see how many days old a file is......is this efficient?

2001-01-06 Thread Carl Jolley
On Sat, 6 Jan 2001, Brian Gibson wrote: > I am setting up an FTP Server and I am working on a script > that will remove all files in tmp that haven't been Modified in the past > 30 days (for house cleaning purposes) > > I found this code in O'Reilly's "Learning Perl on Win32 Systems" > > -

Perl CGI problem importing quotation marks into form

2001-01-06 Thread Gary Nielson
Hi, I noticed a problem with a cgi script I am writing that generates a form. The user fills out the form, the contents of which I use in other programs. If the user wants to edit her form, she simply later calls up the script using the query string environment variable tacked on to the end of th

Re: Dumb Question: How to check if a string is empty

2001-01-06 Thread Carl Jolley
On Fri, 5 Jan 2001, Lawrence, Rob wrote: > This is sad > > How do you check to see if a string is empty? > > my $stuff > while($stuff "I don't know) > { > print "You must enter a value\n"; > $stuff = ; > } > You can check to see if it is equal to an empty string, e.g. if ($stuff eq '') {

Re: Dumb Question: How to check if a string is empty

2001-01-06 Thread Michael D. Schleif
Brian Steele wrote: > > I'm I missing something here? > > What about > > if(!$stuff) {print "string is empty"} What about: my $stuff = 0; -- Best Regards, mds mds resource 888.250.3987 "Dare to fix things before they break . . . " "Our capacity for understanding is inversely p

Re: Dumb Question: How to check if a string is empty

2001-01-06 Thread Brian Steele
I'm I missing something here? What about if(!$stuff) {print "string is empty"} - Original Message - From: "Naftel, Bill S" <[EMAIL PROTECTED]> To: ""Lawrence; Rob" " <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, January 06, 2001 8:37 AM Subject: RE: Dumb Question: How to che

RE: Dumb Question: How to check if a string is empty

2001-01-06 Thread Naftel, Bill S
Rob, this is really a quick-draw shot from the hip, & will probably be shamefacedly apologized for later, but having said that, couldn't one check for the presence of one or more Any characters? sort of like #using $_ unless /.+/ {print "nothing here\n"} regards, bill naftel

Porting one ASCII-file to several CSV-lists

2001-01-06 Thread Rudi Neumaier
Hi, all i am stuck with a problem and i cannot find any solution to it. I have to mention beforehand that i still am a beginner in Perl, so give me some allowance for my code... OK - i have this ascii-file with the codes and the names of German bancs (some 5000+), which looks like this: ... 1003