Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Packing struct timeval

by Anonymous Monk
on Nov 25, 2012 at 10:49 UTC ( #1005475=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Packing struct timeval
in thread Packing struct timeval

I tried to make a quick example with it and failed.

I kinda knew it would -- reinventing a compiler is hard -- it much simpler to compile a c program to dump the structure of struct, kinda sorta the trick C::DynaLib::Struct/hparse employs

I suppose you could always "fingerprint an os" and build a database of time formats ... pure-perl is pure insanity if you ask me, much less work to install a compiler :)


Comment on Re^3: Packing struct timeval
Re^4: Packing struct timeval
by zwon (Monsignor) on Nov 25, 2012 at 14:29 UTC

    I wish I knew how many people use PP version of my module, if any ;) For the moment I will probably just special case NetBSD 6 and postpone more cardinal solution till other OSes will follow with 64-bit time_t

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-12-20 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls