$_ =~ 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
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.
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
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
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
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 /
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
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
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
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
,
John Pitchko
Data Services
Saskatchewan Government Insurance
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
. $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
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
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
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
I can find some information about designing websites with Perl
CGI?
Thanks,
John Pitchko
Saskatchewan Government Insurance
17 matches
Mail list logo