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

Re: Say/Print bug?

Thread Previous | Thread Next
From:
Eric Brine
Date:
June 28, 2010 22:24
Subject:
Re: Say/Print bug?
Message ID:
AANLkTikxOnD63WHAGq5pWzUU-RQTl8DyGXZnRfZAM255@mail.gmail.com
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\.'.;


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