Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jdavidb (1361)

jdavidb
  (email not shown publicly)
http://voiceofjohn.blogspot.com/

J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.

Journal of jdavidb (1361)

Thursday August 16, 2001
09:30 PM

Apologies and something to do with Perl

[ #674 ]

Okay, my apologies that my first use Perl; journal entry wasn't actually Perl related. But, I thought some people might enjoy it, especially since so many have just been travelling to conferences and such. (But not me. :( ) And I'm certain I'm not the only Perl programmer this young. (I may be the only one who's not a script kiddie, though; I don't know.)

So at any rate, just so I can feel that I actually contributed something to the state of Perl, here's an idea I'd like to see. pack() is cool, and makes for a good way of getting at binary data. But, shouldn't there be something like a Class::Struct that lets you do it all object-oriented like, but then has stringification overloaded to produce binary data? And maybe with an escape to specify a pack format string (much as some date modules allow a hook to specify a strftime string)?

I don't see a module to do this, even when searching CPAN. And I'm not sure it's really an itch that needs to be scratched. (pack worked fine for me the one time I needed it.) But didn't someone say Perl's handling of binary data would be revisited for 6?