Re: missing the boat on s///

2002-08-28 Thread John Pitchko
$_ =~ s/$w/$i/; John Pitchko Data Services Saskatchewan Government Insurance >>> "Jerry Preston" <[EMAIL PROTECTED]> 08/28/02 10:04am >>> Hi!, I know this is simple, but what am I doing wrong? $_ = "Who is missing the boat"; $j = "Jerry"; $w = "Who"; $_ = s/$w/$j/; Thanks, Jerry

Re: How to set cookies for an SHTML document?

2002-08-20 Thread John Pitchko
Is the cookie being generated by the SHTML page or by a Perl script? John Pitchko Data Services Saskatchewan Government Insurance >>> "Octavian Rasnita" <[EMAIL PROTECTED]> 08/19/02 12:03pm >>> Hi all, I have an SHTML file and I want to set cookies for it.

Re: REMOVE ME from your mailing list!

2002-08-14 Thread John Pitchko
Very clever! But what's really scary is his e-mail address. "@us.army.mil" How nice, an army guy that hasn't figured out how to unsubscribe from an e-mail list. I hope he isn't the dude that holds his finger above the nuke button. John Pitchko Data Services Saskatch

Re: REMOVE ME from your mailing list!

2002-08-13 Thread John Pitchko
Did you read where it says, "To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]"??? Or try mailing the admin? John Pitchko Data Services Saskatchewan Government Insurance >>> "Buskirk, Richard Mr USAREC" <[EMAIL PROTECTE

Re: How to find the remote time?

2002-08-12 Thread John Pitchko
Uh probably not with CGI because that is all executed server side, so I don't think you can access anything on the individual clients unless they expressly submit data to the server. Maybe try some JavaScript? John Pitchko Data Services Saskatchewan Government Insu

HTTP_EQUIV Meta Tag

2002-07-30 Thread John Pitchko
I can't get this HTTP_EQUIV meta tag to print. I am following the syntax right out of the man pages: print $query->start_html( -head => meta({ -http_equiv => "refresh", -content => $refresh } ) ); And I get: Content-type: text/html Software error: Undefined subroutine &main::meta called at /

RE: fetch CGI::Cookie Trouble

2002-07-29 Thread John Pitchko
he CGI::Cookie package with the fetch subroutine, but I thought I would try it using the CGI package. I took this code from the http://www.perl.com/doc/manual/html/lib/CGI.html#NETSCAPE_COOKIES. The result is that these hashes are empty. John Pitchko Data Services Saskatchewan Government Insuran

fetch CGI::Cookie Trouble

2002-07-29 Thread John Pitchko
g the fetch CGI::Cookie command, we get: Can't call method "value" on an undefined value at /appl/webdocs/cgi-bin/verify.cgi line 45. We are using the exact code from the manpage and have no idea why this is happening. Any suggestions? Thanks, John Pitchko Data Services Sas

Re: Ternary Regex Evaluation

2002-07-12 Thread John Pitchko
Yes, we didn't even think about that until after someone else on this list mentioned it. We fixed it. John Pitchko Data Services Saskatchewan Government Insurance >>> "Shawn" <[EMAIL PROTECTED]> 07/12/02 04:07am >>> my $title; open (FH, HTML_HOME . $di

RE: Accessing Extra Information in die()

2002-07-11 Thread John Pitchko
I am, but I created my own custom Error subroutine/module to display information instead of just calling the die() function and displaying a bunch of crazy technical information to the user. As for $!, it only passes the type of error and not the file and line numbers. John Pitchko Data

Accessing Extra Information in die()

2002-07-11 Thread John Pitchko
, John Pitchko Data Services Saskatchewan Government Insurance

Re: Ternary Regex Evaluation

2002-07-08 Thread John Pitchko
Yes that would work, but I was really curious as to why the ternary operation does not work. In fact, none of my other ternary operations seem to work. Is there something wrong with my syntax? Thanks, John Pitchko Data Services Saskatchewan Government Insurance >>> "Connie

Ternary Regex Evaluation

2002-07-08 Thread John Pitchko
. $content or die "Cannot open file : $!"; while () { chomp; (m/(.*)<\/title>/i) ? $title = $1 : $title = $content; } print $title; Does anyone have any suggestions? TIA John Pitchko Data Services Saskatchewan Government Insurance

RE: too many headers from CGI script (max 200)

2002-07-04 Thread John Pitchko
Thanks, but I think I solved the problem. I was loading an array with all the contents of a particular directory and I don't think it liked having so many (for some strange reason). Either Perl or CGI.pm was unhappy with that. Anyways, thanks for the help. John Pitchko Data Ser

too many headers from CGI script (max 200)

2002-07-04 Thread John Pitchko
program /appl/webdocs/cgi-bin/template.cgi did not produce a valid header (too many headers from CGI script (max 200)) Any suggestions? John Pitchko Data Services Saskatchewan Government Insurance

RE: Perl/CGI Website Ideas

2002-06-05 Thread John Pitchko
ou can do it better) at sites like http://www.cgi-resources.com/Programs_and_Scripts/Perl/ and http://www.scriptsearch.com/Perl/Scripts_and_Programs/ And stay on this list, of course. :) Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Me

Perl/CGI Website Ideas

2002-06-05 Thread John Pitchko
I can find some information about designing websites with Perl CGI? Thanks, John Pitchko Saskatchewan Government Insurance