develooper Front page | perl.perl5.porters | Postings from August 2008

Re: [PATCH] Add open "|-" and open "-|" to perlopentut

Thread Previous | Thread Next
From:
Brad Baxter
Date:
August 26, 2008 06:22
Subject:
Re: [PATCH] Add open "|-" and open "-|" to perlopentut
Message ID:
f65b37ea0808260622s50250d99r7341abd394918d22@mail.gmail.com
On Mon, Aug 25, 2008 at 4:35 AM, Tom Christiansen <tchrist@perl.com> wrote:
...

>    6.  %{$x{"java"}}
>
...

>    6. x is a hash, the value of whose "java" element hold a array ref.


"hash ref"?

FWIW, I appreciate the involved reasoning for using " over '.  Every time
I started using ' in an effort to follow recommendations expressed by some,
I just didn't like it.  So I stopped.  Your post helps me see why I never
liked it, and I feel less like a heretic.

I'll probably fall back into heretic status, though, if I mention that
really
do like doing this when necessary:

    $elem = qq'<a href="$link">$text</a>';

When I'm quoting a string, I'd rather use quotes than, say, qq{}.
One might argue that it's confusing, but I think the qq makes what I
mean very clear.  In practice, I glance at this and don't think twice.

Brad

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