Re: More subroutine confusion

2003-06-07 Thread Dave K
Rob, > Your response dovetails nicely with my next question. The module I'm > working in begins as follows: > > use warnings; > use strict; > use CGI qw/:standard center strong *big delete_all/; Because the code you have included does not specifically say so I have to guess that: package NotShow

Re: br -- problem caused by "Package"?

2003-06-07 Thread Dave K
Rob, > > I tried another program to illustrate the "br" problem. Here is the > entire program: > Not really - the packages ScheduleDay and Train are missing > #!/usr/bin/perl > > use warnings; > use strict; > use CGI qw/:standard center *big delete_all/; > > use ScheduleDay; > use Train; > > pack

Re: clearing screen details from within script

2003-02-10 Thread Dave K
James, > I am writing a members registration perl script , and I want to be able to > clear the html output so that another form page can be displayed once the > form has been filled in and the values processed. ie when the script passed The browser will not behave like a terminal screen. You will

Re: HoH Crash II

2003-01-24 Thread Dave K
Ed, Wiggins, et al > > $newH{'TS'} => $TS; # TS is the outer key. <<== line 33 > > This sets the outer hash key to the string 'TS' and gives it the value of the time ($TS) from above. > I don't think so. It's late I'm beat but $newH{'TS'} = $TS; as opposed to $newH{'TS'} => $TS; Which generate

Re: Hash names in a HoH

2003-01-20 Thread Dave K
Ed, A 'cleaner' approach. #!/usr/bin/perl -w use strict; my %hash = ( fruits => { favorite => "apples", 'second favorite' => "oranges", }, vegetables => { favorite => "corn", 'second favorite' => "peas", 'least favorite' => "turnip", }, meats =>

Re: cgi text color in tables

2003-01-19 Thread Dave K
Greg, Show some code, if you can. > i am using references in > table rows - it's better for me to highlight row by bgcolor avoiding Why would references be a problem? > additional loops - but maybe any idea how to quick change text color for a > row that's defined as reference to table - thanks i

Re: cgi text color in tables

2003-01-18 Thread Dave K
> > i can't change the text color in a single row of table (even in all table) > > sincerely greg > this is an html specification. To affect data or text in the cells each cell > must be formatted with the desired attributes. > Check W3C HTML 4.01 spec. You can mix in standard html pretty much a

Re: start_tr

2002-12-13 Thread Dave K
tr transliterate Tr table row qw( :standard *Tr ); allows one to use start_Tr and end_Tr so that you don't have to pull your hair out trying to nest method calls. HTH <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I don't believe there is a start_tr() method, w

Re: script runs in console but not in browser

2002-12-09 Thread Dave K
Merritt, Works as expected in the console, but not in the browser? Let me introduce you to a friend of mine use CGI::Carp qw( fatalsToBrowser ); Your script operates under different permissions in the console and the browser. Look at the Apache error log (and use cgi carp) to get a better Idea

Re: listing perl modues on system

2002-11-20 Thread Dave K
Jerry, I use this to track the modules I have installed for an ActiveState perl install on WinNt. #!E:/Perl/bin/perl -w use ExtUtils::Installed; my $instmod = ExtUtils::Installed->new(); foreach my $module ($instmod->modules()) { my $version = $instmod->version($module) || "???"; print "$module

Re: Variable method invocation

2002-11-20 Thread Dave K
to replicate functionality I have seen on the web (specifically Image Magick Studio). If this leads to a compact, functioning program I will make it available to all interested. Thanks for your response! David "Wiggins D'Anconia" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTE

Variable method invocation

2002-11-20 Thread Dave K
Not sure if this is the correct place to ask, partly because I'm not sure where the problem lies. Environ: Winnt, ActiveState Perl, ImageMagick, Apache. Script uses CGI standard. I am attempting to access various methods from Image::Magick, some of which require no arguments, 1 argument, several ar

Re: To upload file from client to Appache server (WNNT)

2002-08-03 Thread Dave K
Bruce, Connie's point is important. bruce2.pl shebang line (the first line in the script) must match your perl install because Apache uses it to determine what program to use to run the script. Also any references to files or folders in that script must be available on your server. I suspect t

Re: DBI newbabe

2002-06-05 Thread Dave K
There are many possible sources of error. Please include the actual error you received, and you will get the help you need. I have posted a few DBI/CGI scripts here http://www.geocities.com/k2001evad/pindex.html They are abit crude, but if you have MySql up and running on you machine and the CGI,

Re: Insertion of table causes syntax error-message

2002-05-30 Thread Dave K
Richard, You did take that from the 'Rat' book, but in the book use CGI qw( standard ); Allows the author to use an implicit $q-> so he can write table where as you need to write $q->table, $q->Tr, $q->td etc. HTH "Richard Krause" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E

Re: return values to sub

2002-05-05 Thread Dave K
> Calling sub fetch from within the next subroutine again does not work > either :( I believe the fetch sub does as you ask it to. The problem is you are asking it to return the password of row where f_name = '' and f_surname = '' Try passing the names as hidden fields in the first form to the

Re: Oracle stored procedures and Perl CGI

2002-04-19 Thread Dave K
The discussion was a learning experience for me as well, (again I learned the DBI and DBD can do!) David Kirol "T. Murlidharan Nair" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All: > > This for the benifit of all. I had a wonderful time discussing this >

Re: Creating table for message board server tosave/delete/update messages

2002-03-27 Thread Dave K
Bruce: use warnings; use strict; use DBI; my $dbname = 'Bruce'; my $dbhostname = 'localhost'; my $user = 'root'; my $password = '' ; my $cs = "CREATE TABLE employee_Info (primary_key INT AUTO_INCREMENT NOT NULL, name CHAR(20), surname CHAR(20), employee_no CHAR(10), shoe_colour CHAR (

LONG POST CGI, images and core dumps

2002-03-27 Thread Dave K
First, thanks (again) for past help. This one might be tough. I have a number of images stored in a database and a script that takes care of fetching the right one. It is the target of an html image tag. http://localhost:80/fetch.pl?star=polatis&type=bright&num=5";> In static pages, this works fin

Printing not in correct order

2002-03-21 Thread Dave K
I have a cgi script- #!C:/Perl/bin/perl -wT use strict; use CGI; my $q = new CGI; binmode STDOUT; print $q->header(-type => "image/gif" ); use Image::Magick; my $image=Image::Magick->new; $image->Set(size=>'30x180'); $image->Read("gradient:#ff-#ff"); $image->Raise('3x3'); $image->Rotate