• Commented on Why Companies Turn Me Down For Contracts
    At the end of the day, you are still selling some of your waking hours for money. That is to say that you are earning money rather than making money. Whilst its important to build your career, remember that ultimately...
  • Commented on I need pack examples for the Camel
    Perhaps consider an example from
  • Commented on When do you upgrade perl?
    redhats blatant refusal to take perl seriously is very damaging. come on they put an end of life perl version in their new os. (5.10 in rhel6)...
  • Commented on Three things I'd Change About Perl
    This function just looks like a recipe for unmaintainable code and then system administrators contacting hitmen on their developers. Its interesting how languages focus on programmer conveniences and neglect other parts of a softwares lifecycle which can be just as...
  • Commented on RHEL and perl
    Sadly, perl 5.10 is slated for rhel6 rather than perl 5.12 My workplace is a large rhel and perl user, so we have placed a formal request for 5.12 in rhel6. Can i recommend that other rhel users log in...
Subscribe to feed Recent Actions from dean

  • John McNamara commented on I need pack examples for the Camel

    Spreadsheet::WriteExcel makes extensive use of pack() . It uses it around 800 times to construct a variety of binary records that comprise an Excel file.
    It doesn't use any particularly interesting pack templates though. It is all fairly vanilla.

    Here is a simple but useful pack construct that I use in testing a lot to convert some hexdumped data back to the original structure:

    my $data = pack 'H*', join '', qw (
    FF D…

  • Andrew Rodland commented on I need pack examples for the Camel

    I don't have a good example using @ or any of the things you asked for, but I do have an example that's interesting in its own way.

    Years ago, in Freenode #perl, I was working with someone who was getting the output of a mysql query from the mysql CLI. They insisted that, due to reasons beyond their control, they couldn't possibly run the query using DBI, or change the output options on the CLI, or anything that would be sensible. So the task was to parse data looking like:

    | foo | bar | baz |
    |   1 |   2 |   3 |
    |  23…
  • Joel Berger commented on I need pack examples for the Camel

    Does anyone else see a "pack of Camels" joke here? No one? Ok fine.

    A stackoverflow search might be:

  • Ben Bullock commented on I need pack examples for the Camel

    brian d foy asks

    Also, which modules make extensive use of pack?

    Any of the pure-Perl image parsing modules does. For example, Image::ExifTools, in particular Image::ExifTools::PNG. See also Image::PNG::Rewriter, Image::Pngslimmer.

    A pure-Perl png decoder/encoder using pack and unpack would make a nice example of parsing binary formats for an advanced Perl book.

    The older, pre-Encode modules for handling multibyte characters, e.g. Japanese characters, used pack/unpack a lot but those are mostly obsolete now.

  • Paul "LeoNerd" Evans commented on I need pack examples for the Camel

    A number of pairs of pack/unpack examples can be found in

Subscribe to feed Responses to Comments from dean

About is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.