in reply to Re: Randomizing Big Files
in thread Randomizing Big Files

Something in this way can work, I will just point that a SCALAR in Perl is not a char*, since it can have UTF8/UNICODE values. We should use vec() to ensure that the data will be exactly the same that is appended with pack(). Also vec() already does the pack trick for us:
vec($offs , $i , 32) = $n ;

Replies are listed 'Best First'.
Re^3: Randomizing Big Files
by Aristotle (Chancellor) on Jan 26, 2005 at 16:18 UTC

    Yes, good points. Using vec would actually simplify the code, even.

    Makeshifts last the longest.