I'd like to know how to populate an array and access its elements anywhere in the script by just using the index of the array. What I am trying to do is to run a database query and populate an array with the results. It works OK if I access the elements within the while statement. However, my...
I encounter one problem when I execute the script. I receive several e-mails at once (one e-mail for every row the query returns). I was wondering if there is a way to overcome this problem.
Sorry, I am totally new to Perl, so please excuse my ignorance. Can I use the sendmail function inside of the while statement? For instance, can I do it like in the code below? I found that I cannot access the elemets of the array outside the while statement.
while (@row =...
I would like to know how I can e-mail database query results. I currently use a similar script as below to display the results in HTML format. Thanks in advance for your help.
#!/usr/bin/perl
require "cgi-lib.pl";
use DBI;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
&ReadParse(*in);
$DBH...
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.