On 19 Jun 2003 05:55:37 -0000, Matt Seddon posted about a module he's
been
working on:
> Hello all. Recently, I needed to extract version information from windows
> .exe and .dll files, which spurred me to create a new module that sneaks
> into a Portable Executable and pull out all sorts of info:
> use FileFormat::PE;
{snip}
Sounds like a great idea!
However, I will make a namespace observation. I see no FileFormat:: tld
on
search.cpan.org. If there isn't one then you're going to get stiff
resistance
(so I hear) to creating a new one for this package. Might I humbly
suggest
based on a little thinking over what i am seeing on CPAN, that Parse::
might
be the right tld for your modules? (BTW, is there a convenient place to
go
read what all the "approved Perl namespace "Top-level" names are??,
anyone?)
Thus... [read on pls]
> It is pure perl, is tested, and runs happily under linux, OS-X and Win32.
Excellent.
> But it gets better- I'm drawing up plans to do exactly the same with
> linux/ELF binaries, and any other binary format I can get my grubby little
> mitts on.
>
> I would like to try and keep them all in a coherant package, FileFormat::PE
> seems a little ambiguous, and Win32 isn't where I'd look for a
> cross-platform package. Any suggestions?
... Furthermore, I agree that there's no need to / it's undesirable to
place "Win32"
in this module's name. "PE" is IMHO enough to effectively convey what
this module
is for. Those who might want to get such info out of Win32 executable
image files
will already know what "PE" is. As soon as i saw "PE" in your message I
felt that
I knew just what it was about.
So I might suggest:
Parse::FileFormat::[PE,ELF,etc.]
or maybe:
Parse::BinImage::[...]
or even:
Parse::ExeImage::[...]
or even:
Parse::(Bin)?ImageInfo::[...]
or finally:
Parse::(Bin)?ImageMeta::[...]
(since the kind of info you are talking about is "meta info" for a
particular
binary executable image).
> Does anyone else actually even have a use for this package? :)
Yes, I am pretty sure I will find it useful!
HTH,
Soren A.
--
http://www.fastmail.fm - Consolidate POP email and Hotmail in one place