Ok, a few questions:
What does print <<"END_HTML"; do as apposed to < --- Kyle Babich <[EMAIL PROTECTED]> wrote:
> > I'm a beginner. The following is what I wrote:
> >
> > #!/usr/bin/perl
> > print "Content-type:text/html\n\n";
> >
> > @days = ("Sunday","Monday","Tuesday","Wednesday","Thursday"
Ok, what you put didn't work for me for some reason. I was getting
some syntax errors. I played with it a little bit and this is what I
got to work:
#!/usr/bin/perl -wT
use strict;
use CGI qw/:standard/;
print "Content-type: text/html\n\n";
print header;
my $date = localtime;
my $body = pa
Now what would I use to get multiple variables working at once, like:
test.cgi?body=a&nav=5&bg=abc
Would it go like this:
#!/usr/bin/perl -wT
use strict;
use CGI qw/:standard/;
print "Content-type: text/html\n\n";
my $date = localtime;
my $body = param('body');
my $content = "body";
if ($bod
Ok, I decided to make my test.cgi into a kind of refernce page for when
I'm creating my site. There is some kind of problem with my hash.
Once again can someone explain to me what I'm doing wrong?
Here is what I got from doing perl -Tcw in the shell:
> bash-2.05$ perl -Tcw test.cgi
> bash-2.0
Kyle --
...and then Kyle Babich said...
%
% Ok, I decided to make my test.cgi into a kind of refernce page for when
% I'm creating my site. There is some kind of problem with my hash.
% Once again can someone explain to me what I'm doing wrong?
As perl tells you, there are a few errors.
%
At 07:59 PM 6/22/02 -0500, you wrote:
>I have a really simple question I hope. The redirect doesn't work. It
>doesn't work if I print it or not. Why is it not working? Any help will be
>much appreciated.
Erik, here is a complete program to redirect to a webpage - one I wrote
that happens to c
Ok, I've got it down to one problem right now, I need an explicit
package name for this:
foreach $key(keys %pages) {
print "$key\n";
}
It says I need it for $key but no matter where I put the my it won't
stop giving me that error. Where in that does the my go?
>
>
> Kyle --
>
> ...
Kyle --
...and then Kyle Babich said...
%
% Ok, I've got it down to one problem right now, I need an explicit
% package name for this:
% foreach $key(keys %pages) {
% print "$key\n";
% }
Well, only if you use it that way :-)
%
% It says I need it for $key but no matter where I put the
At 07:37 AM 6/23/02 -0400, Kyle Babich wrote:
>foreach $key(keys %pages) {
> print "$key\n";
>}
>
>It says I need it for $key but no matter where I put the my it won't
>stop giving me that error. Where in that does the my go?
Kyle, this is a syntactic 'not-nicety' of Perl imho. You need
or you could leave out the "$key".
foreach (keys %pages) {
print "$key\n";
}
On Sun, 2002-06-23 at 08:59, Marty Landman wrote:
> At 07:37 AM 6/23/02 -0400, Kyle Babich wrote:
>
> >foreach $key(keys %pages) {
> > print "$key\n";
> >}
> >
> >It says I need it for $key but no matt
--- Kyle Babich <[EMAIL PROTECTED]> wrote:
> Ok, what you put didn't work for me for some reason. I was getting
> some syntax errors. I played with it a little bit and this is what I
> got to work:
>
> #!/usr/bin/perl -wT
> use strict;
> use CGI qw/:standard/;
>
> print "Content-type: text/h
--- Kyle Babich <[EMAIL PROTECTED]> wrote:
> Now what would I use to get multiple variables working at once, like:
> test.cgi?body=a&nav=5&bg=abc
> Would it go like this:
>
> #!/usr/bin/perl -wT
> use strict;
> use CGI qw/:standard/;
>
> print "Content-type: text/html\n\n";
>
> my $date = loc
--- Kyle Babich <[EMAIL PROTECTED]> wrote:
> Ok, I've got it down to one problem right now, I need an explicit
> package name for this:
> foreach $key(keys %pages) {
> print "$key\n";
> }
>
> It says I need it for $key but no matter where I put the my it won't
> stop giving me that error
I need your guys opinion. I'm thinking of having a sub ran in every sub to
check to make sure this script is being ran only through my own domain. I
think this will only break down a valid referral from
http://www.digital-drakon.com/*anything* . The only thing I think I need to
add is to fo
--- [EMAIL PROTECTED] wrote:
> I need your guys opinion. I'm thinking of having a sub ran in every sub to
> check to make sure this script is being ran only through my own domain. I
> think this will only break down a valid referral from
> http://www.digital-drakon.com/*anything* . The only
I have set up a site using the venerable Web Store from Extropia
(http://www.extropia.com/applications/web_store.html) . I am curious,
as the basic program is pretty old, if there are any drawbacks or
issues with it? Or if there is another open source store set up that
is better? Volume is not
Hi,
how to run perl cgi script as different user (default user is www) ???
Pavel
sorry for my english
Yes, I am using IE 6.0.2600.IC, but it was redundant too and showed
up when I loaded the page so I deleted the print header; after I wrote
that e-mail.
> --- Kyle Babich <[EMAIL PROTECTED]> wrote:
> > Ok, what you put didn't work for me for some reason. I was getting
> > some syntax error
This is what I have:
my %pages = ("Yahoo","http://www.yahoo.com/";,
"Google", "http://www.google.com/";,
"All The Web", "http://www.alltheweb.com/";);
while ( my ($key, $pages) = each %pages ) {
print qq{$key};
}
How could I put this all into a scalar to call up later?
Than
Hi all,
If I put at the end of a subroutine a line:
return = 0;
or
return =1;
How can I check if the return value is true or false?
I've tried with
if (subroutine_name) {
}
But it always give me the true value.
Am I missing something, or am I doing something wrong?
Thanks.
Teddy Ce
For users of HTML::Template, attached is a note about
a patch someone wrote to help guard against cross-site
scripting attacks when using said module. FYI.
Note: forwarded message attached.
=
"Now it's over, I'm dead, and I haven't done anything that I want; or, I'm still
alive, and there'
Hello Octavian,
You need to say return(0) or return(1), not return = 0 or 1.
Shawn
- Original Message -
From: "Octavian Rasnita" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 23, 2002 1:33 AM
Subject: return =1
> Hi all,
>
> If I put at the end of a subroutine a li
22 matches
Mail list logo