Jeff wrote:

On 6/24/07 10:42 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

 > Probably a list of hashes would be the most natural.
my @LoH = map { { split } } $file_contents =~ /\{(.*?)\}/gs;

Thanks. That's cool. Since this is the beginner's list, I'll just dive in
and ask a(nother) dumb question. I'm not sure I understand the double curly
braces around split. Would you mind showing me that in a less terse form?

The outer curly braces are map's code block and the inner curly braces are an anonymous hash.


John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to