My dumbest mistakes tend to be in C rather than Perl, e.g.: a tool I wrote some time ago to do simple statistics on digital audio files (8-bin histogram of 16-bit sample values) worked just fine on my sparc, so I put it on a linux box, checked about 30 GB worth of audio files, found them to be "bad" (histograms were just too wacky), and so I deleted those files. (I was trying to validate a particular processing pipeline, and I concluded that something must have gone wrong with the process.)
Then I noticed that when the code detected the byte order of the 16-bit data, it was byte-swapping to big-endian when necessary, in order to get the numbers right -- on the sparc (which made them wrong on i686-linux). Oh well, it would only take a day or so to reconstitute those files... so the delivery would only be that much behind schedule.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.