Send me the details of the project and I'll look it over. Right now I'm
pretty busy, but I've wanted to work on a volunteer for a while now.
Bradley M. Handy
Senior Programmer/Owner
Jack-of-all-trades Programming Services
--www.jack-of-all-trades.net
--mailto:[EMAIL PROTECTED]
Most likely because no data is being passed to the script.
Brad
> -Original Message-
> From: Francesco Scaglioni [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 9:23 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: uninitialised value strings
>
>
> Hi ag
> -Original Message-
> From: Francesco Scaglioni [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 8:00 AM
> To: [EMAIL PROTECTED]
> Subject: uninitialised value strings
>
>
> Hi,
>
> I have been playing around with the rat book but have the following
> problem:
>
> The attac
can't give you details, but I know it works well.
Bradley M. Handy
Programmer Analyst
Spring Arbor University
--www.arbor.edu
--mailto:[EMAIL PROTECTED]
Quote: If women don't find you handsome
they should at least find you Handy.
-- Steve Smith as Red Green from the Red Green Show
> ---
ein's CGI.pm module.
print CGI->header();
or
# if you are NOT using Lincoln Stein's CGI.pm module.
print "Content-type: text/html\n\n";
The reason the HTML is being read as plain text, is due to the fact Netscape
and Opera are being the content is 'Content-type: text/pla
ou want to use the subroutine 'uploadInfo' then you will need to
retrieve the filename
from the CGI object using 'param', but for a filehandle you should use
'upload'.
Hope this helps.
Bradley M. Handy
Senior Programmer/Owner
Jack-of-all-trades Programming Service
think
now it maybe 2.76. (Check you local CPAN dealer for more details.) In any
case, you should download the latest 2.x version of CGI.pm and use that.
If you ARE using the latest 2.x version of CGI.pm, then could you post your
code so we can have a look at it. Or, is that not possible.
Bradle
Try the Error.pm module. You can find it at:
http://search.cpan.org/doc/MSERGEANT/AxKit-1.4/Error-0.13/Error.pm
Brad Handy
--www.jack-of-all-trades.net
--mailto:[EMAIL PROTECTED]
> -Original Message-
> From: David Simcik [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 20
http://search.cpan.org/search?module=CGI
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Teresa Raymond [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 13, 2001 12:48 PM
> To: Moon, John
> Cc: [EMAIL PROTECTED]
> Subject: RE: Multiple values and
I can attest to that. I'm running Win98, and I have 256M of RAM and P3 800.
The stinking program hangs about 75% of the time after just clicking inside
the text window.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Mel Matsuoka [mailto:[EMAIL PR
Is there are URL where I can get the version for Windows?
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 08, 2001 3:02 PM
> To: Bradley M. Handy
> Cc: Kuchler
I just downloaded Komodo and subscribed for a non-commercial license (I work
for a non-profit organization). The non-commercial license is free.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Kuchler, David [mailto:[EMAIL PROTECTED]]
> Sent: Wedn
Have you taken a look at the GnuPG or Crypt::GPG modules on CPAN?
These would probably work really good for what you're doing, and
you wouldn't have to worry about redirecting STDOUT.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Mark Ross [mailto
If you have Dreamweaver you can use the 'Clean up Word HTML' option in the
Modify menu on the toolbar.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Adam Carson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 07, 2001 11:22 AM
> To: [EMAIL PROT
all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Bradley M. Handy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 01, 2001 10:27 AM
> To: [EMAIL PROTECTED]
> Subject: Tie and HASHREF's
>
>
> I am wondering about the use of tie with hashes and
/path/to/db_file', LockDirectory=>'path/to/'};
my $hashref = \%session;
##--- End Code
Is
$hashref->{session_var} = session_value;
the same as
$session{session_var} = session_value;
========
Bradley M. Handy
Pro
esday, July 31, 2001 3:52 PM
> To: Bradley M. Handy
> Subject: RE: PERL and JavaScript
>
>
> First of all I'm using the CGI.PM module to generate
> my CGI [which is all done using CGI.pm's functions].
>
> Anyways, the exact problem was this:
>
> I have a form
What kind of problems were you having with Perl?
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Chris Johnstone [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 3:23 PM
> To: [EMAIL PROTECTED]
> Subject: PERL and JavaScript
>
>
> I am a
Also, take a local a the Date::Calc module for the date arithmetic.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Venkat Mohan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 25, 2001 12:58 PM
> To: 'Fred Sahakian'; <
> Subject: RE: Date
>
>
>
If you don't have the following line in your code then you should add it.
print "Content-type: text/html\n\n";
or if you're using the CGI object
print CGI->header();
This should be done before you print anything to the browser.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL P
In Java there is the ability to do database connection pooling, where you
have a ConnectionPool object that contains multiple database connection in
it. When you need a connection to a database, you get one from the pool and
go.
Is there a way to do this in Perl, or is there some article I could
> -Original Message-
> From: Helen Dickey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 7:11 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: e-mailing HTML form results
>
>
> I finished correcting the errors which gave software and comp. error
> messages.
> Now I get the pretty pa
try this:
my $row;
print "";
while($row = $dbh->fetch()) {
print Tr([td([@$row[1..18]])]);
}
print "";
This only pulls a database resultset row into memory when you need. In your
earlier example you pull everything into memory first and then print it out.
This can be quite inefficient.
In my experience with Perl, whenever you use the construct 'print
<<"tag_name";' you need to surround it with either single quotes (') or
double quotes ("). That's the only thing that I see that could be wrong.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message--
Take a look at the Documentation for the CGI.pm module at:
http://search.cpan.org/search?module=CGI
or presuming that the perl location is in your PATH environment variable you
can do this:
perldoc CGI
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original M
If you are going to use the 'datasend' and 'dataend' subroutines then you
must change your to do the following:
$smtp->data();
$smtp->datasend("whatever1\n");
$smtp->datasend("whatever2\n");
$smtp->datasend("whatever3\n");
$smtp->dataend();
One thing to note. When you start sending data, it is
> -Original Message-
> From: Helen Dickey [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 6:34 AM
> To: '[EMAIL PROTECTED]'
> Subject: Re: e-mailing HTML form results
>
>
> Hi again,
> Can the line
> $smtp->to('[EMAIL PROTECTED]");
> be
> $smtp->to('[EMAIL PROTECTED],STDOUT
Multiple form parameters of the same name are interpretted by CGI.pm as an
array. The first one to appear in the form is the 0th element and then it
goes on from there. For instance:
If the form is submitted with all these checkboxes chec
Check out the documentation for the Net::SMTP module at:
http://search.cpan.org/search?module=Net::SMTP
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Helen Dickey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 7:40 AM
> To: '[E
;s the unbreakable code, which
> I want to be made breakable:
>
> $SIG{INT} = \&end;
>
> run();
>
> sub run {
> while (1) {
> print "blah\n";
> }}
>
> sub end {
> $SIG{QUIT} = \&end;
> print "ending\n";
> die;
> }
>
> --- "B
If you are using the Term::ReadKey module, what read module do you have it
in? Can you post your code?
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Thomas Jakub [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 15, 2001 2:33 AM
> To: [EMAIL PROTE
Take a look at the module Spreadsheet::ParseExcel.
http://search.cpan.org/search?module=Spreadsheet::ParseExcel.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Deneb Pettersson (LMF) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 4:58
Honestly, I don't think it would be fair to say that.
> -Original Message-
> From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: Nasty
>
>
> I don't work with a lot of programmers. I hope to get into a
> situation w
No they aren't equivalent.
The first prints out -> The rain in $Spain
The second prints out -> The rain in "$Spain"
Does that clarify things?
> -Original Message-
> From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 4:08 PM
&g
I believe that to be incorrect. The outermost quotes win.
Brad
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 3:55 PM
> To: 'Brett W. McCoy'; Camilo Gonzalez
&
Correct.
> -Original Message-
> From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 3:35 PM
> To: Camilo Gonzalez
> Cc: 'Bradley M. Handy'; Tony Paterra; [EMAIL PROTECTED]
> Subject: RE: Copy and past HTML into a perl script
>
ble name-> $var
This is a variable value-> I'm interpolated
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 3:25 PM
> To: 'Bradley M. Handy
Your quotes may be mismatched. Meaning that you are enclosing the entire
HTML source with double quotes and you have unescaped double quotes in your
HTML source. That would confuse perl.
For example:
print ""; # in this line image.gif is a bareword.
You should
You still could use s///. You just need to take out the '+' sign like so:
$number =~ s/\d/x/g;
If you use the regexp above for the following example here is what you get:
$number = '1 1';# before regexp
$number =~ s/\d/x/g;# perform regexp
> -Original Message-
> From: Thomas Jakub [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 11:43 AM
> To: [EMAIL PROTECTED]
> Subject: breakable loop???
>
>
> I have the following code segment:
>
> for ($count=1;$count<11;$count++)
> {
> $c=getc;
Your script is pausing here f
For the answer to your question take a look at the following URL:
http://soldc.sun.com/polls/index.jshtml
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 10:35 A
#!/path/to/perl
use CGI;
print CGI->param();
print "I'm Working";
I believe the above lines of code should work just fine.
> -Original Message-
> From: john.twycross [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 10:25 AM
> To: [EMAIL PROTECTED]
> Subject: test script
>
I believe that you can get the same functionality from the 'getc' function
in PERL. Although I believe that 'getch' returned the 'character' you
pressed not a variable.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Thomas Jakub [mailto:[EMAIL P
> -Original Message-
> From: Jerry Preston [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 7:29 AM
> To: cgi
> Subject: cookies
>
>
> Hi!
>
> I guess I am missing the boat. I have read CGI::Cookie and
> played with the code, but I would think that I should be able to
> read
I generally put my cgi-bin directory in the same level as my root www
directory.
For example:
root www -> /usr/local/www/htdocs
cgi-bin -> /usr/local/www/cgi-bin
Then you need to add a ScriptAlias Directive (if you're using Apache) into
your httpd.conf file
ScriptAlias
It can happen. Generally the reason is an unclosed literal string somewhere
in the HTML source. At least that's been my experience with that problem.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Mark Bergeron [mailto:[EMAIL PROTECTED]]
> Sent
s to strip those annoying Microsoft
incantations.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Jason Purdy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 1:46 PM
> To: Bradley M. Handy; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subj
This may sound silly, but what text editor are you using on your Windows
machine to edit the script file?
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Jason Purdy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 1:33 PM
> To: [EMAIL PR
Can you send a copy of the HTML source to the list?
Brad Handy
> -Original Message-
> From: Samuel Brown [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 1:21 PM
> To: [EMAIL PROTECTED]
> Subject: Script written HTML won't display
>
>
>
> Here's a wierd problem for the gur
49 matches
Mail list logo