Perl (and all) programming is mostly good habits, and the best good habit is knowing where to look.
I want to do this without a module. Any help on how to do this is welcome.
I am just baffled when I see such a statement. Doesn't CPAN still spring to mind? How can it not? (completelyl baffling).

You also say you "have no experience atall with binary files", and still, CPAN is not the first place you look. Take hossmans advice, and go check out the CPAN module he referenced. Look inside the module, and see if you can borrow anything (whether it be code or technique).

And lastly, you did say binary file, specifically of the mpeg format, which should tell you that you need to get the specification for that format (most of the time, everything you've already told yourself what you need, even if you may not have realized it). Check out http://www.wotsit.org for different file format specifications (I'm sure mpeg must be in there somewhere).

Also, in case you haven't heard of CPAN, check out How to Read The Friendly Manual - it's more than just a how-to on reading the manual, it's salt to invoke the thirst for knowledge, a guide to quenching it (even if whatever question you're asking is not exactly in the manual).

And finally, every time after you've thought up something that'd be cool to do, repeat outloud the goal you set before yourself, and a solution, or a path to one (a strategy), will surely always present it self (or at least the picture in your head will come more in focus).

Peace! Start communication ;)

 
______crazyinsomniac_____________________________
Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"


In reply to (crazyinsomniac) Re: mpeg headers by crazyinsomniac
in thread mpeg headers by Doos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.