At 10:34 PM 07/13/2001 -0400, fliptop wrote:
>Curtis Poe wrote:
>>
>> There are other reasons, too. Just today, I was asked to break
>> a version of a Web site we were about to publically release.
>> It took me 5 minutes to find a security hole and demonstrate
>> that I could execute any arb
Curtis Poe wrote:
>
> There are other reasons, too. Just today, I was asked to break a version of a Web
>site we were
> about to publically release. It took me 5 minutes to find a security hole and
>demonstrate that I
> could execute any arbitrary SQL against our database by passing it throug
[also cc'ed to the beginners-cgi list for everyones benefit]
At 08:00 PM 07/13/2001 -0500, Teresa Raymond <[EMAIL PROTECTED]> wrote:
>Mel, thanks for pointing out the duplicate. I can't use strict
>because I get an error msg, I think it's an older version of Perl -
Thats what "use strict" is
--- fliptop <[EMAIL PROTECTED]> wrote:
> i think there are several things that help contribute to the testiness
> of open source programmers in general:
[snip]
There are other reasons, too. Just today, I was asked to break a version of a Web
site we were
about to publically release. It took m
David Labatte wrote:
>
> heheheh now that all depends. If I run:
>
> perl -e'package hell; print *holes;'
>
> Then I get as output:
>
> *hell::holes
>
> Which actually more closely describes where programmers usually find
> employment, not the programmers that are employed there. Commo
heheheh now that all depends. If I run:
perl -e'package hell; print *holes;'
Then I get as output:
*hell::holes
Which actually more closely describes where programmers usually find
employment, not the programmers that are employed there. Common
mistake that. use strict and -w from now
At 03:45 PM 07/13/2001 -0500, Camilo Gonzalez wrote:
>I don't work with a lot of programmers. I hope to get into a situation where
>I do. Is it fair to say the majority are *holes?
A LOT of them are (just read c.l.p.m ;), but thier saving grace is that you
can learn a LOT from them if you don't t
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
I don't work with a lot of programmers. I hope to get into a situation where
I do. Is it fair to say the majority are *holes?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
maybe I'm not implementing the SIG{ING} thingie
right...
I had a die; command in there, but that didn't work...
--- Thomas Jakub <[EMAIL PROTECTED]> wrote:
> Ummm... I can't seem to break out of my infinite
> loops by doing crtl + c... consequently, I can't go
> into the SIG{INT} function... I
On Fri, 13 Jul 2001, Camilo Gonzalez wrote:
> My apoligies, Brett. Consider me a lurker from now on.
No need to apologize. We just wanted to make sure you understood the
concept correctly. If you are expecting interpolation where there isn't,
you'd be chasing bugs that didn't exist, and wastin
My apoligies, Brett. Consider me a lurker from now on.
-Original Message-
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 3:32 PM
To: Camilo Gonzalez
Cc: 'Bradley M. Handy'; Tony Paterra; [EMAIL PROTECTED]
Subject: RE: Copy and past HTML into a perl script
On
On Fri, 13 Jul 2001, Camilo Gonzalez wrote:
> Yes it does, thank you. I'm afraid I'll have to disagree with you. My
> Programming Perl book tells me otherwise. I still consider myself a newbie,
> however and welcome other comments.
Did you even try to run the code? We can argue about it all day
You're right. Obviously my interpretation was incorrect. Thank you for
possibly saving me work.
-Original Message-
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 3:18 PM
To: Camilo Gonzalez
Cc: 'Bradley M. Handy'; Tony Paterra; [EMAIL PROTECTED]
Subject: RE: C
At 03:16 PM 07/13/2001 -0500, Camilo Gonzalez wrote:
>Yes it does, thank you. I'm afraid I'll have to disagree with you. My
>Programming Perl book tells me otherwise. I still consider myself a newbie,
>however and welcome other comments.
Don't "disagree" without first trying it for yourself.
As
Ummm... I can't seem to break out of my infinite
loops by doing crtl + c... consequently, I can't go
into the SIG{INT} function... I tried Crtl +
Backspace, but that didn't work to well either...
Crtl + S stopped it, but that was it... What are the
control signals for unix? Or am I doing som
Yes it does, thank you. I'm afraid I'll have to disagree with you. My
Programming Perl book tells me otherwise. I still consider myself a newbie,
however and welcome other comments.
-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 3:10 PM
To
On Fri, 13 Jul 2001, Camilo Gonzalez wrote:
> So let's clarify this. You believe the following to be equivalent:
>
> print ( 'The rain in $Spain' );
> print ( 'The rain in "$Spain"' );
The first would print The rain in $Spain
The second would print The rain in "$Spain"
Neither would interpolat
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
> To: 'Bradley M. Handy'; Camilo
So let's clarify this. You believe the following to be equivalent:
print ( 'The rain in $Spain' );
print ( 'The rain in "$Spain"' );
-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 2:58 PM
To: Camilo Gonzalez; 'Brett W. McCoy'
Cc: Tony Pat
On Fri, 13 Jul 2001, Camilo Gonzalez wrote:
> That's true, but if you have double quotes inside of single quotes, the
> double quotes will still interpolate. In other words, the enclosing single
> quotes will not block the mighty interpolative power of the enclosed double
> quotes. Please let me
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
> Cc: 'Bradley M. Handy';
That's true, but if you have double quotes inside of single quotes, the
double quotes will still interpolate. In other words, the enclosing single
quotes will not block the mighty interpolative power of the enclosed double
quotes. Please let me know if you believe this yo be incorrect.
-Origi
On Fri, 13 Jul 2001, Thomas Jakub wrote:
> what about print ""; ?
> would that piece of code work?
You can avoid the backslashitis by using the qq() operator:
print qq();
It's much cleaner, especially with HTML.
-- Brett
http://www.chapelperilous.net/btfwk/
Hi,
On Fri, 13 Jul 2001, Thomas Jakub wrote:
> what about print ""; ?
> would that piece of code work?
Yes, that works, but escaping characters can get very ugly on screen.
Another option is the qq operator:
print qq();
For long bits of HTML, I prefer the here doc method mentioned in other
what about print ""; ?
would that piece of code work?
--- "Bradley M. Handy" <[EMAIL PROTECTED]>
wrote:
> 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
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
>
>
> On Fri, 13 Jul 2001, Camilo Go
Try running the following code as a test script:
--- Start code
#!/path/to/perl
my $var = "I'm interpolated";
print 'This is a variable name-> $var';
print "\nThis is a variable value-> $var \n";
-- End code
Your output should be:
This is a variable name-> $var
This is a variable value-
On Fri, 13 Jul 2001, Camilo Gonzalez wrote:
> I'm not sure your second example would work. I don't think single quotes
> block interpolation
What do you mean by that? Variables do not interpolate if the string is
delimited by single quotes or q();
-- Brett
ht
Bradley,
I'm not sure your second example would work. I don't think single quotes
block interpolation
-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 12:56 PM
To: Tony Paterra; [EMAIL PROTECTED]
Subject: RE: Copy and past HTML into a perl
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 may want to try this:
print "Content-type: text/html\n\n";
print <
etc...
EOF
-Original Message-
From: "Tony Paterra"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Fri Jul 13 10:44:56 PDT 2001
Subject: Copy and past HTML into a perl script
>I have a cgi script that I need to past
On Fri, 13 Jul 2001, Tony Paterra wrote:
> I have a cgi script that I need to past approx 40 lines of HTML into. I was
> hoping I could just get away with having a
>
> print "";
>
> and get away with that but sadly no, I get incomplete set of headers errors.
You need to print out the header inf
I have a cgi script that I need to past approx 40 lines of HTML into. I was
hoping I could just get away with having a
print "";
and get away with that but sadly no, I get incomplete set of headers errors.
Any suggestions?
Thanks,
Tony
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
--- Gary Stainburn <[EMAIL PROTECTED]> wrote:
> Hi Dan,
>
> It doesn't really matter what size your script is, the perl interpreter is
> very good at compiling. Performance problems from larger scripts are
> marginal too.
>
> However, I would suggest taking a step back from the project and ha
[ I lost the original message. Sorry!]
> Have you looked at things like HTML::Template to seperate out and manage
> your HTML?
>
> I personally have *finally* started to practice what I preach, and I am
> finding it easier. I'm just about to start looking at HTML::Template
> myself.
Quite oft
I'm trying to get my apache server up and running but when I try and start
it I get an perl error. I've tried a few thing to fix it but none ahve
worked. Can anyone help me out?
I am using RH7.1 and have installed japanese language support. For example I
use a japanese keyboard, and sometimes
In this case, sub report_stats would only be called when
the script gets a sigint.
Be sure to read perlipc and pay attention to the warnings
therein.
I don't think this will work under Windows, but I'm pretty
sure that Term::ReadKey will.
Thomas Jakub wrote:
>
> signal handling sounds i
Dave,
Dave C. Brewington <[EMAIL PROTECTED]> said something to this effect on
07/12/2001:
> I am using a script to parse through info sent in from a web
> form. The information is parsed and creates two text files.
> One is used for a flat text history file and the other flat
> text file is use
Hi Dan,
It doesn't really matter what size your script is, the perl interpreter is
very good at compiling. Performance problems from larger scripts are
marginal too.
However, I would suggest taking a step back from the project and have a think
about how you could change/improve things. It p
Size Doesn't matter Or so Ive been told, Or led to believe :)
- Original Message -
From: "Daniel Falkenberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 8:50 PM
Subject: Is my script too big?
> List,
>
> This may sound like a weird question but I am working
41 matches
Mail list logo