Steven Brooks wrote: > > On Monday 07 January 2002 03:16 am, you wrote: > > You have two options: > > > > Option one: Put the string between single quotes $a = '"Test Test Test"'; > > > > Option two: $a = q("Test Test Test"); > > > > Regards > > Robert Graham > > Well, there are other options. Not that they are better, but they are > options. Both require escaping the characters. > > $a = "\"Test Test Test\""; > $a = qq{"\"Test Test Test\""}; ^ ^ Back-slashes are not required when using qq(). Your example would print ""Test Test Test"" with two quotes on either side. So, to sum up, the options are:
$a = "\"Test Test Test\""; $a = '"Test Test Test"'; $a = qq/"Test Test Test"/; $a = q/"Test Test Test"/; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]