in reply to Re^16: Declaring Hash entries
in thread Declaring Hash entries

...My biggest problem will be converting each entry into its respective format, But i will have to wait till sunday to see about it.

Here is a tip, there are only three formats

if( $index->{param_fmt} == 4 ){ $index->{value} = decode('UTF-8', $raw ) ;##utf-8-special +NOT nul } elsif( $index->{param_fmt} == 516 ){ $index->{value} = decode('UTF-8', $raw ) ; ##utf-8-charstr +ing-nul chop $index->{value} ; ## chop the null } elsif( $index->{param_fmt} == 1028 ){ $index->{value} = UInt32( $raw ) ;; ##uint32 }

Replies are listed 'Best First'.
Re^18: Declaring Hash entries
by james28909 (Deacon) on Jan 16, 2015 at 14:33 UTC
    I havent forgot about this as it is a side project in attempts to actually finish up another project. Eventually, what i am going to do is load all the offsets and read lengths into a hash or an array, that way one can type in 'script.pl -p PS3_SYSTEM_VERSION "03.5500"' and that would actually patch the file. i have this sunday off and nothing at all planned so hopefully i can bang this one out