in reply to Re: greedy subexpression between two nongreedy ones
in thread greedy subexpression between two nongreedy ones

I had not -- because I had no idea such a thing was possible. (So many Perl tricks to learn!) In fact, I still don't know how to find out more about this, because it's impossible to search Perl docs for a "@" and home in on a specific meaning. :-) What's the name of that @{ } construct?

This solves my problem perfectly, and has the bonus of not further cluttering the left-hand side of an already complex substitute pattern. Thanks for the new trick!

  • Comment on Re^2: greedy subexpression between two nongreedy ones

Replies are listed 'Best First'.
Re^3: greedy subexpression between two nongreedy ones
by Anonymous Monk on Jun 02, 2015 at 23:53 UTC

    @{[...]} is a trick for interpolation of almost any expression into a string, explained e.g. here.

      Ah, so it's not really a new operator so much as a novel combination of familiar operators. Anyway, a great tool to have in one's toolbox!
Re^3: greedy subexpression between two nongreedy ones
by Anonymous Monk on Jun 03, 2015 at 00:02 UTC
    What's the name of that @{ } construct?

    According to perlsecret @{[ ]} is the "baby cart" operator.