in reply to Re: Ogg Vorbis tag parsing in pure perl
in thread OGG Vorbis tag parsing in pure perl
I don't understand the map syntax used in your code example.
I know you marked this as untested, but thought I would ask for clarification
in case this was not a typo of some sort and I was missing something.
Does the "map +( )" syntax have a special purpose? I was unable to get the code to work as is,
and I had to modify my version a bit to get it to work.
my %info = map { $_ => $buffer =~ /$_=([^=]+)/i } qw(artist title albu +m genre comment);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Ogg Vorbis tag parsing in pure perl
by Aristotle (Chancellor) on Dec 31, 2002 at 17:11 UTC |