RE: multiple quotes
Two different ways. Use the qq operator or escape the quotes. print qq[\n]; print "\n"; Rob -Original Message- From: Mike Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 2:02 PM To: [EMAIL PROTECTED] Subject: multiple quotes How do I get this to work? (too many quotes) print "\n"; Mike Smith -- 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]
Re: multiple quotes
On Feb 7, Mike Smith said: >How do I get this to work? (too many quotes) > >print "\n"; You can either escape the " with a backslash... print "like \"this\"..."; but that gets to look REALLY ugly, REALLY fast. So use a different quoting operator instead: print "xyz"; print 'http://www.foo.com/";>xyz';# no variables here print qq{http://www.foo.com/";>xyz}; # qq is double quotes print q{http://www.foo.com/";>xyz}; # q is single quotes perldoc perlop, look for "Quote and Quote-like Operators". -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** what does y/// stand for? why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple quotes
On Thu, 2002-02-07 at 14:01, Mike Smith wrote: > How do I get this to work? (too many quotes) > > print "\n"; > > Mike Smith try qq (see perldoc perlop) print qq(\n); -- Today is Pungenday the 38th day of Chaos in the YOLD 3168 Kallisti! Missle Address: 33:48:3.521N 84:23:34.786W -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple quotes
On Thu, 7 Feb 2002, Mike Smith wrote: > How do I get this to work? (too many quotes) > > print "\n"; print qq(\n); qq() is the generic form of "". You can also use qq{}, qq##, etc. See the perlop page for more details. -- Brett http://www.chapelperilous.net/ There's one fool at least in every married couple. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multiple quotes
Use single quote marks inside your print statement. for instance print "\n"; Better yet, use CGI instead. HTH -Original Message- From: Mike Smith To: [EMAIL PROTECTED] Sent: 2/7/2002 1:01 PM Subject: multiple quotes How do I get this to work? (too many quotes) print "\n"; Mike Smith -- 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]
Re: multiple quotes
you need to escape your inner quotes with a backslash like so. print "\n"; Pat - Original Message - From: "Mike Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 07, 2002 2:01 PM Subject: multiple quotes > How do I get this to work? (too many quotes) > > print "\n"; > > Mike Smith > > > > > -- > 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]