Amy2000 has asked for the wisdom of the Perl Monks concerning the following question:

different files have different properties like tile/subject/category/comments/author, some files have more complicated properties like keywords/pages/scale..., how to get these and set these in perl program?

2006-04-21 Retitled by planetscape, as per Monastery guidelines
Original title: 'Any ideas how to get and set properties of a file in perl?'

  • Comment on Any ideas how to get and set properties of an mp3 file in perl?

Replies are listed 'Best First'.
Re: Any ideas how to get and set properties of an mp3 file in perl?
by japhy (Canon) on Apr 20, 2006 at 20:39 UTC
    Are these properties of MS Word documents? If so, I'm sure the Win32 API for Word has the means by which to get and set those values.

    Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
    How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
      Actually I want to find out the way to change .mp3 files properties
        You want to edit ID3 tags, either ID3v1 (fixed max field length) or ID3v2 (newer, variable content). Check out MP3::Tag for example. It's a very powerful, and as a consequence, a rather hard to use module. There may be some more focussed, less heavyweight modules for your perusal on CPAN.