Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

SuicideJunkie's scratchpad

by SuicideJunkie (Priest)
on Aug 09, 2007 at 19:48 UTC ( #631644=scratchpad: print w/ replies, xml ) Need Help??

open my $fh, '+>>', $_ or die "Open failed: $!\n"; binmode $fh; seek $fh, (-s $_) - 0xC2, 0 or die "Can't seek: $!"; printf "Found myself at position 0x%x out of 0x%x\n", tell($fh), -s $_ +; print $fh (pack'C[4]', @vertAlign);
Results:
Found myself at position 0xc01501 out of 0xc015c3 Found myself at position 0x3795 out of 0x3857
The four values still get tacked on to the END of the file instead of overwriting in the middle...
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2014-08-29 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls