Re: 2 off in array count and index

2010-03-22 Thread Jay Savage
On Tue, Mar 16, 2010 at 11:47 AM, jbl wrote: > I am reading a directory and creating an array of .png file names. I > know for a fact that there are 1025 png files in the folder > With $count = @files I get 1027 > With $last = $#files I get 1026 > $files [0] = . > $files[1] = .. > I have heard of

Re: CGI ap on NetworkSolutions host

2009-04-08 Thread Jay Savage
On Wed, Apr 8, 2009 at 10:12 AM, Vance E. Neff wrote: > Hello, > > has anyone had experience getting a CGI application to work on a > NetworkSolutions unix host? > > I have a CGI program under cgi-bin called Login.CGI and a html page under > htdocs. > When the html page attempts to post a form to

Re: Send a file

2008-02-19 Thread Jay Savage
On Feb 19, 2008 7:15 AM, Beginner <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to send a file in response to a request but am having > trouble. > > Here's what I have so far. I am not certain what the headers should > be. I am not getting any more info from my error_log except Premature > end o

Re: FLOCK

2007-05-29 Thread Jay Savage
On 5/29/07, Akbar Ehsan <[EMAIL PROTECTED]> wrote: Hello Everyone, I am attempting to lock a file using FLOCK. I understand the FLOCK is an advisory lock and that it does not prevent any other process/program from "clobbering" the file even when the lock in on the file. Is there anything I shou

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Jay Savage
On 9/1/06, Lou Hernsen <[EMAIL PROTECTED]> wrote: Well... he's right Right is a matter of opinion. Trolling is a matter of fact. And he's a troll. At this point, it doesn't really matter if he's right or wrong. Its confusing and overly complicated, in its multiple syntaxes, for a compiled lan

Re: How to do a static variable that persists from page to page

2006-05-02 Thread Jay Savage
On 5/1/06, Luke, David <[EMAIL PROTECTED]> wrote: Mary, Your program should not "wait" for a web user to click a link or a Submit button -- ever. There are no cpu cycles and there is no storage reserved once you finish building the web page. Your whole program should draw a web page and exit. T

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Jay Savage
On 4/28/06, Mary Anderson <[EMAIL PROTECTED]> wrote: >Hu Jay, Thanks for the reply. There is a lot I don't know to chew on. Could you just clue me in on a few things: DATA::Dumper must be a perl module on CPAN? POST and GET are elementary CGI commands that I had better learn fast i

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Jay Savage
On 4/28/06, Sean Davis <[EMAIL PROTECTED]> wrote: On 4/27/06 10:19 PM, "Mary Anderson" <[EMAIL PROTECTED]> wrote: > > > > > Hi, >I have a cgi program that pulls data out of a database and stores it in > an array ref. I would like to display this data one row at a time. > Unfortunately I

Re: C++ query with mySQL

2006-04-10 Thread Jay Savage
On 4/10/06, Sara <[EMAIL PROTECTED]> wrote: > I have been stuck here, SOS call: > > Using CGI.pm, I have the script calling certain categories from mySQL table. > > my $cat = $q->param('cat'); > my $dbh -> prepare ("SELECT * FROM main WHERE CAT='$cat'"); > > Sample Categories('CAT') are given below

Re: Matching a string containing '+'

2006-02-08 Thread Jay Savage
On 2/8/06, Herschel <[EMAIL PROTECTED]> wrote: > Sara wrote: > > > Using this query in my Perl Script to find the Category title from the > > database given as: > > C_and_C++/Forums > > C_and_C++/Codes > > C_and_C++/Sites > > etc. > > my $sql = qq(SELECT CAT_TITLE, FROM categories WHERE CAT_TITLE R

Re: regex nth match of string, perl 5.8.5

2006-01-23 Thread Jay Savage
On 1/23/06, Chris Cosner <[EMAIL PROTECTED]> wrote: > Hello, > > I have some data coming into a system with markup that I need to > reinterpret into HTML. I have a feeling I'm making this problem more > complex than it needs to be. > > The beginning and ending markup are the same. So text would > b

Re: implementing links on a system command output

2005-10-14 Thread Jay Savage
On 10/14/05, Chris Devers <[EMAIL PROTECTED]> wrote: > On Fri, 14 Oct 2005 [EMAIL PROTECTED] wrote: > > > I have written a CGI Perl program that allows my users to view > > relevant data. > > > > The data is produced by a Unix application command and I have told it > > to write to a intranet page t

Re: Script execution time.

2005-08-03 Thread Jay Savage
On 8/3/05, Chris Devers <[EMAIL PROTECTED]> wrote: > On Wed, 3 Aug 2005, Sara wrote: > > > I have to test/optimize a script on a shared server. The script > > contains a couple of mySQL queries etc. > > > > Is there a way that I can see the query execution time (like in > > phymyAdmin) and total s