RE: Copy and past HTML into a perl script

2001-07-13 Thread Brett W. McCoy
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Camilo Gonzalez
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Brett W. McCoy
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Camilo Gonzalez
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Mel Matsuoka
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Camilo Gonzalez
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Brett W. McCoy
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Bradley M. Handy
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 ( '

RE: Copy and past HTML into a perl script

2001-07-13 Thread Camilo Gonzalez
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Brett W. McCoy
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Bradley M. Handy
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Camilo Gonzalez
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: >

RE: Copy and past HTML into a perl script

2001-07-13 Thread Brett W. McCoy
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/

RE: Copy and past HTML into a perl script

2001-07-13 Thread Lisa Nyman
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Thomas Jakub
lus it makes > your code more readable. > > Brad Handy > > --www.jack-of-all-trades.net > [EMAIL PROTECTED] > > > > -Original Message- > > From: Tony Paterra > [mailto:[EMAIL PROTECTED]] > > Sent: Friday, July 13, 2001 1:45 PM > > T

RE: Copy and past HTML into a perl script

2001-07-13 Thread Bradley M. Handy
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 >

RE: Copy and past HTML into a perl script

2001-07-13 Thread 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 script > > > Your quotes may be mismatched. Meaning that you are enclosing the entire > HTML source with double quotes and you h

RE: Copy and past HTML into a perl script

2001-07-13 Thread Brett W. McCoy
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

RE: Copy and past HTML into a perl script

2001-07-13 Thread Camilo Gonzalez
code more readable. Brad Handy --www.jack-of-all-trades.net [EMAIL PROTECTED] > -Original Message- > From: Tony Paterra [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 13, 2001 1:45 PM > To: [EMAIL PROTECTED] > Subject: Copy and past HTML into a perl script > > > I

RE: Copy and past HTML into a perl script

2001-07-13 Thread Bradley M. Handy
e. Brad Handy --www.jack-of-all-trades.net [EMAIL PROTECTED] > -Original Message- > From: Tony Paterra [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 13, 2001 1:45 PM > To: [EMAIL PROTECTED] > Subject: Copy and past HTML into a perl script > > > I have a cgi s

Re: Copy and past HTML into a perl script

2001-07-13 Thread Mark Bergeron
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

Re: Copy and past HTML into a perl script

2001-07-13 Thread Brett W. McCoy
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

Copy and past HTML into a perl script

2001-07-13 Thread Tony Paterra
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