Re: return =1

2002-06-23 Thread Shawn
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

Fwd: [htmltmpl] [PATCH] default_escape

2002-06-23 Thread John Brooking
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'

return =1

2002-06-23 Thread Octavian Rasnita
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

Re: test.cgi hashing error

2002-06-23 Thread Kyle Babich
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

Re: Can someone tell me what I did wrong with this?

2002-06-23 Thread Kyle Babich
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

Changing users

2002-06-23 Thread Pavel Koutný
Hi, how to run perl cgi script as different user (default user is www) ??? Pavel sorry for my english

Web Store

2002-06-23 Thread Lewis Kirk
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

Re: security check

2002-06-23 Thread Ovid
--- [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

security check

2002-06-23 Thread WyvernGod
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

Re: test.cgi hashing error

2002-06-23 Thread Ovid
--- 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

Re: Can someone tell me what I did wrong with this?

2002-06-23 Thread Ovid
--- 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

Re: Can someone tell me what I did wrong with this?

2002-06-23 Thread Ovid
--- 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

Re: test.cgi hashing error

2002-06-23 Thread Jordan Mclain
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

Re: test.cgi hashing error

2002-06-23 Thread Marty Landman
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

Re: test.cgi hashing error

2002-06-23 Thread David T-G
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

Re: test.cgi hashing error

2002-06-23 Thread Kyle Babich
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 -- > > ...

Re: Question about redirect

2002-06-23 Thread Marty Landman
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

Re: test.cgi hashing error

2002-06-23 Thread David T-G
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. %

test.cgi hashing error

2002-06-23 Thread Kyle Babich
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

Re: Can someone tell me what I did wrong with this?

2002-06-23 Thread Kyle Babich
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

Re: Can someone tell me what I did wrong with this?

2002-06-23 Thread Kyle Babich
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

Re: Can someone tell me what I did wrong with this?

2002-06-23 Thread Kyle Babich
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"