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 p
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
ED]
Subject: RE: Copy and past HTML into a perl script
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 w
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
01 3:10 PM
To: Camilo Gonzalez; 'Brett W. McCoy'
Cc: Tony Paterra; [EMAIL PROTECTED]
Subject: RE: Copy and past HTML into a perl script
No they aren't equivalent.
The first prints out -> The rain in $Spain
The second prints out -> The rain in "$Spain"
Does that
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
t; To: 'Bradley M. Handy'; Camilo Gonzalez; 'Brett W. McCoy'
> Cc: Tony Paterra; [EMAIL PROTECTED]
> Subject: RE: Copy and past HTML into a perl script
>
>
> So let's clarify this. You believe the following to be equivalent:
>
> print ( '
Gonzalez; 'Brett W. McCoy'
Cc: Tony Paterra; [EMAIL PROTECTED]
Subject: RE: Copy and past HTML into a perl script
I believe that to be incorrect. The outermost quotes win.
Brad
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Camilo Gonzalez
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
gt; Cc: 'Bradley M. Handy'; Tony Paterra; [EMAIL PROTECTED]
> Subject: RE: Copy and past HTML into a perl script
>
>
> 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
&g
rrect.
-Original Message-
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 2: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 Gonzalez wrote:
>
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
>
[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 script
>
>
> Your quotes may be mismatched. Meaning that you are enclosing the entire
> HTML source with double quotes and you h
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 i
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
22 matches
Mail list logo