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: 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 clarify things?


> -----Original Message-----
> From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 4:08 PM
> 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 ( '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 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 [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 13, 2001 3:55 PM
> > To: 'Brett W. McCoy'; Camilo Gonzalez
> > 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
> > quotes will not block the mighty interpolative power of the
> > enclosed double
> > quotes. Please let me know if you believe this yo be incorrect.
> >
> > -----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:
> >
> > > 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
> >                                http://www.chapelperilous.net/btfwk/
> > ------------------------------------------------------------------------
> > It is the wisdom of crocodiles, that shed tears when they would devour.
> >             -- Francis Bacon
> >
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to