in reply to compiling Perl on Win32 so I can use Inline::C

If you grab the MS VC++ compiler, you can use Inline::C in combination with ActiveStates pre-built binaries. Saves a bunch of hassle.

Then again, once you have MS VC++, building Perl yourself is considerably easier anyway.

That said, why read a byte at a time? If your frames are fixed length, read or sysread a frame's worth of bytes and process the buffer a byte at a time. Then you can use Perl's string-wise and, or exlusive or and not to process whole strings together if that fits your purpose. And if not, you can always drop into C for that bit and leave the filehandling to perl.


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^2: compiling Perl on Win32 so I can use Inline::C
by diana (Initiate) on Mar 03, 2005 at 04:21 UTC
    Wow, I really appreciate everyone's comments! I can't assume fixed frame length or even that a frame begins on the first bit. I wanted to use Perl for its cool data structures and file I/O... Not giving up yet... :)
      Definitely don't give up! I am also confident that Perl can do what you are needing, although I am confident only because others Monks I trust say it is so.

      Your's sounds like a cool problem, to me at least. Stick around so we can watch it get solved! :)