Re: image button submit?

2002-02-08 Thread Brett W. McCoy
On Fri, 8 Feb 2002, Josiah Altschuler wrote: > Is there a way to use an image button in CGI.pm to submit? Sure: print image_button(-name=>'name', -src=>'path/to/img'); will produce: This is documented in the CGI.pm documentation, accessible via perldoc. -- Brett

image button submit?

2002-02-08 Thread Josiah Altschuler
Is there a way to use an image button in CGI.pm to submit? Thanks, Josiah -Original Message- From: Al Hospers [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 8:42 PM To: 'Josiah Altschuler'; [EMAIL PROTECTED] Subject: RE: Passing a hash through a URL > I have a question a

RE: beginners-cgi Digest 8 Feb 2002 17:29:24 -0000 Issue 165

2002-02-08 Thread John
I am not sure that this applies to command lines - if I put a file path with / in a variable, then pass that variable to a command line tool, I think that fails. So I constantly have to put these kinds of variables in \\ form rather than s# before calling the CLT. Actually what I do is to he

RE: beginners-cgi Digest 8 Feb 2002 17:29:24 -0000 Issue 165

2002-02-08 Thread Curtis Poe
--- Allen Wang <[EMAIL PROTECTED]> wrote: > I want to change the string "d:\orant\oracle" to "d:\\orant\\oracle" > > Anyone know how to do this? > > > Thanks, > allen I'm not sure exactly what this stemmed from, so my comment may be out of place, but Perl is portable and will let you use the

RE: beginners-cgi Digest 8 Feb 2002 17:29:24 -0000 Issue 165

2002-02-08 Thread Brett W. McCoy
On Fri, 8 Feb 2002, Allen Wang wrote: > I want to change the string "d:\orant\oracle" to "d:\\orant\\oracle" > > Anyone know how to do this? $string =~ s|\\||g; (\ is used to escape metacharacters in a regexp, so you need to escape \ also). -- Brett

RE: beginners-cgi Digest 8 Feb 2002 17:29:24 -0000 Issue 165

2002-02-08 Thread Allen Wang
I want to change the string "d:\orant\oracle" to "d:\\orant\\oracle" Anyone know how to do this? Thanks, allen > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 08, 2002 9:29 AM > To: [EMAIL PROTECTED] > Subject: beginners-cgi

Re: Image Galleries On-the-Fly

2002-02-08 Thread Eric Pretorious
On Fri, 8 Feb 2002, Eric Pretorious wrote: > I'm hoping to build a CGI script that: > > 1. creates a thumbnail index of .jpg files in a directory, and > 2. serves full-size images > > wrapped in an HTML template, on-the-fly. I found the Apache::Album modlue and read the readme.txt file but

Re: Image Galleries On-the-Fly

2002-02-08 Thread Randal L. Schwartz
> "Eric" == Eric Pretorious <[EMAIL PROTECTED]> writes: Eric> I'm hoping to build a CGI script that: Eric> 1. creates a thumbnail index of .jpg files in a directory, and Eric> 2. serves full-size images Eric> ...wrapped in an HTML template, on-the-fly. google for: site:stonehenge.com "Sto

Re: Image Galleries On-the-Fly

2002-02-08 Thread John
http://archive.develooper.com/beginners-cgi%40perl.org/ http://lists.perl.org At Friday, 8 February 2002, Eric Pretorious <[EMAIL PROTECTED]> wrote: >Hello, All: > >I'm hoping to build a CGI script that: > >1. creates a thumbnail index of .jpg files in a directory, and >2. serves full-size ima

Image Galleries On-the-Fly

2002-02-08 Thread Eric Pretorious
Hello, All: I'm hoping to build a CGI script that: 1. creates a thumbnail index of .jpg files in a directory, and 2. serves full-size images wrapped in an HTML template, on-the-fly. I recall a similar thread a few weeks ago on this list but have misplaced the series of messages that trans

Re: Reading a big text file

2002-02-08 Thread Brett W. McCoy
On Fri, 8 Feb 2002, Octavian Rasnita wrote: > To store the file in an array, then to insert the changed value in that > array, and then to write that array to the file, or to use a temporary file > to store each line from the source file and twhen I want to modify a line, I > have just to insert

Re: Problem with cgi scripts

2002-02-08 Thread Curtis Poe
--- Charles Waterman <[EMAIL PROTECTED]> wrote: > When I try to run a CGI script on my webhost server with "use CGI > qw/:standard/;" it does not work. What up with that "use CGI qw/:standard/;" is perfectly valid syntax (and even good practice). However, "it does not work" does not give

Problem with cgi scripts

2002-02-08 Thread Charles Waterman
When I try to run a CGI script on my webhost server with "use CGI qw/:standard/;" it does not work. What up with that -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problem with a simple script

2002-02-08 Thread Octavian Rasnita
Hi all, I tried to make a simple script that for the moment needs only to read the content of a .dbx file. I used: #!c:\perl\bin\perl.exe print "Content-type: text/html\n\n"; #here I printed a simple HTML header. open (DAT, "$file"); while () { print "$_"; } # here the HTML footer. I think

Reading a big text file

2002-02-08 Thread Octavian Rasnita
Hi all, I want to read a text file line by line and to make some changes in some lines. Which method do you recommend? To store the file in an array, then to insert the changed value in that array, and then to write that array to the file, or to use a temporary file to store each line from the so

Re: Renaming files with Perl

2002-02-08 Thread Briac Pilpré
On Fri, 8 Feb 2002 06:48:56 -0800, Troy May <[EMAIL PROTECTED]> wrote: > Hello, > > I posted a question about this a couple days ago and only got 2 > responses, but neither of them worked for him. So I figured I'd start > new since he told me the EXACT format he would like the files to be > in. M

Re: $ENV{'HTTP_USER_AGENT'

2002-02-08 Thread Kliment Ognianov
Bernd Lach wrote: >Hi there, > >I have a problem in detecting any kind of environment >variables. > >I always get a premature script error , when I launch sth like >this. > > >#!C:/Perl/bin/perl.exe -w >use diagnostics; >use strict; > >use CGI; > >$browser = $ENV{'HTTP_USER_AGENT'}; > >if ($

Re: $ENV{'HTTP_USER_AGENT'

2002-02-08 Thread Jeff 'japhy' Pinyan
On , Bernd Lach said: >#!C:/Perl/bin/perl.exe -w >use diagnostics; >use strict; You're using strict and -w, good. >use CGI; > >$browser = $ENV{'HTTP_USER_AGENT'}; Oops. You didn't declare $browser. my $browser = $ENV{HTTP_USER_AGENT}; -- Jeff "japhy" Pinyan [EMAIL PROTECTED] ht

Re: procmail or perl to drop dups?

2002-02-08 Thread Brett W. McCoy
On Fri, 8 Feb 2002, Dennis G. Wicks wrote: > Has anyone developed any method to drop messages that > are cross-posted to both [EMAIL PROTECTED] and > [EMAIL PROTECTED]? Here's the procmail recipe I use for duplicates: :0 Whc: msgid.lock | formail -D 8192 msgid.cache :0 a: DUPLICATES -- Brett

RE: $ENV{'HTTP_USER_AGENT'

2002-02-08 Thread Camilo Gonzalez
If you're trying to view your results in a browser, you need to generate HTTP headers. -Original Message- From: Bernd Lach [mailto:[EMAIL PROTECTED]] Sent: None To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: $ENV{'HTTP_USER_AGENT' Hi there, I have a problem in detecting any kind of

Renaming files with Perl

2002-02-08 Thread Troy May
Hello, I posted a question about this a couple days ago and only got 2 responses, but neither of them worked for him. So I figured I'd start new since he told me the EXACT format he would like the files to be in. My friend wants to rename a dat file as he calls it. (message.dat?) He would lik

FormMail Spam Hole

2002-02-08 Thread Scot Robnett
If you have time, please read the following article. If you use FormMail.cgi, then let me suggest that it's required reading. http://www.newsbytes.com/news/02/174174.html For beginning Perl/CGI programmers, this is good information to have. When I first started using CGIs, I used FormMai

$ENV{'HTTP_USER_AGENT'

2002-02-08 Thread Bernd Lach
Hi there, I have a problem in detecting any kind of environment variables. I always get a premature script error , when I launch sth like this. #!C:/Perl/bin/perl.exe -w use diagnostics; use strict; use CGI; $browser = $ENV{'HTTP_USER_AGENT'}; if ($browser =~ /Mozilla/) { # # Netscape #

procmail or perl to drop dups?

2002-02-08 Thread Dennis G. Wicks
Greetings; Has anyone developed any method to drop messages that are cross-posted to both [EMAIL PROTECTED] and [EMAIL PROTECTED]? Care to share? Thanks, Dennis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]