develooper Front page | perl.perl5.porters | Postings from June 2010

Re: Say/Print bug?

Thread Previous | Thread Next
From:
Chas. Owens
Date:
June 29, 2010 05:15
Subject:
Re: Say/Print bug?
Message ID:
AANLkTikicGFNFPnuriKLNxZ4HxmScLh42WPIk3cKFKtG@mail.gmail.com
On Tue, Jun 29, 2010 at 01:24, Eric Brine <ikegami@adaelis.com> wrote:
> On Mon, Jun 28, 2010 at 8:28 PM, Chas. Owens <chas.owens@gmail.com> wrote:
>>
>> <announcer voice>In the future</announcer voice>, the docs will
>> hopefully make this clearer.  Currently [perlopquick][1] says
>>
>>    To place a C<'> inside the string, you must escape it with C<\>:
>>
>>        my $quote = 'He said \'I like quotes.\'';
>
>
> To place a delimiter inside the string, not necessarily C<'>
>
> my $quote = 'He said \'I like quotes.\'';
> my $quote = q.He said 'I like quotes\.'.;

The general single quote mechanism is handled in a different section
(=head2 q(X) rather than =head2 'X').

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About