Whoops, the original way I wrote the regular expression was working all along. I was just looking in the wrong place in the text file and seeing that no changes had occurred, when in fact the changes were being made in the place in the .txt file I was addressing in the program. I've been...
I'm having trouble creating a regular expression. I have an html form that contains the <textarea></textarea> tags. When the form is submitted, I capture the output of the <textarea> and write it to a .txt file. For some reason, unknown to me, carriage returns and whitespaces are mysteriously...
Thanks Kirsle, your code works. In case anybody else is interested, here is the code that works:
######################################################
## write_session_cookie
######################################################
sub write_session_cookie
{
my $self = shift...
Thanks for the hint KevinADC. I've already eliminated the syntax as a possible cause by entering the expriation info directly into the line that is passing the variable like:
$session->expire('+10y');
This essentially comes right out of the CPAN doc.
I've change the overall syntax of the...
In my main class or module (eg Smglobal.pm) I have a parameter set as follows:
$self->{SESSION_EXPIRE} = "+10y";
In my Sm_session class or module I have the following method which Smglobal.pm inherites:
######################################################
##...
I have a shopping cart application that uses CGI::Session. When a visitor logs into the system, a cookie is written to the visitor's computer. The cookie contains the customer's account number.
I want to make the cookie permanent on the visitor's computer, so after a customer logs into the...
Thanks cLFlaVA; the "return false;" worked.
Regards,
LelandJ
Leland F. Jackson, CPA
Software - Master (TM)
http://www.smvfp.com
Nothing Runs Like the Fox
If I take the perl out, the html would look like:
<td>
<INPUT type="image" src="http://www.smvfp.com/sm_cart_product_images/prod1.png" heigth="150" width="150" name="displayPhoto" title="Display More Info 1" VALUE="" ONCLICK="displayPhoto('Picture...
Thanks for the advice. I'll give that a try, and see if it corrects the problem. The code is actually in a perl script, but the output, including the variables are streamed to the client's browser in pure html:
elsif ( $arraycolumns[ $loop_index ] eq "moreinfo1" )...
I have an html form with an onclick <img src> something like this:
<img src ... ONCLICK="displayPhoto('http://www.smvfp.com/product_images/prod1.PNG')>
This calls a displayPhoto javascript function where the thumbnail is displayed as a large image using javascript's window.open() command.
The...
Below is a link to [Programming the Perl DBI]. If you click on [Appendix B: Driver and Database Characteristics] and the go down to [DBD::Oracle], you will find some, hopefully helpful, examples of calling a stored procedure in Oracle.
http://www.unix.org.ua/orelly/linux/dbi/index.htm...
For PostgreSQL I would just pass the same command I would enter from the psql shell, execpt I would pass it to the database server using perl. I would assume you would do the same for oracle.
http://www.saturn5.com/~jwb/dbi-examples.html
Regards,
LelandJ
Leland F. Jackson, CPA
Software -...
Hi,
I have written a Shopping Cart application in perl specifically for a PostgreSQL database server. The application is in version 0.90 beta and is stable.
I'm looking for some help from perl and PostgreSQL folks that would be willing to download the smcart-0.90beta-i386.tar.gz tarball...
Hi,
I have written a Shopping Cart application in perl specifically for a PostgreSQL database server. The application is in version 0.90 beta and is stable.
I'm looking for some help from perl and PostgreSQL folks that would be willing to download the smcart-0.90beta-i386.tar.gz tarball...
Hi greaver,
My application is still in development, so I'm still wrestling with how I will finally release it. The application I'm writing users Apahce::DBI, DBI, CGI, & CGI::Sessions among others.
It is my position that if the GPL application is kept separate from the proprietary...
Hi cradletoenslave,
It is not necessary to escape the html, if you use the double quote (e.g. qq ). The [qq] handles all the quoting for you within the qq block. Any character can be used to create the qq block of text. I selected the [ ~ ] since it doesn't conflict with anything I'm doing...
Hi arnOLD,
Yes, hashes work very well. Here is an exaple of how I'm passing them to a class for easy track of scalars by using hidden values embedded in html:
#-------- sub of the test.pl program ------------
###############################################
## oops_hidden_values...
Hi arnOLD,
#---- ArnOLD said ----------------
doesn't
if ( $thecellspace )
{
$self->{ TABLECELLSPACE } = $thecellspace;
}
change the calling object? so that (assuming $oMy can be used in the followiing manner):
$the_table1 = $oMy->tablestyle("75%",1);
$the_table2 =...
Hi bluegroper,
Remember that each table in the database needs a unique primary key field, so be sure each of your tables have a primary key. In postgresql the first field I use for each of may tables is of a type "Serial", which creates a sequence table that is called each time a record is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.