http://qs321.pair.com?node_id=794204


in reply to Mystery character in hash key name

See the $; variable. You'll want to split on that instead of <fs>. Also, printing $LaL isn't going to be helpful, since you're splitting to @LaL.

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: Mystery character in hash key name
by fiddler42 (Beadle) on Sep 08, 2009 at 20:01 UTC
    Hi,

    That was it! This works:-

    foreach (keys %NewRFactorAverageHash) { $RScale = $NewRFactorAverageHash{$_}; $F = 0; $BBEL = 0; $AR = 0; $VL = 0; print ("original key is $_\n"); @LaL = split (/$;/, $_); print ("new key is @LaL\n"); }

    BTW, notice I replaced "new key is $LaL" with "new key is @LaL"...the original post was a typo.

    Thanks again!

    -Fiddler42

Re^2: Mystery character in hash key name
by bv (Friar) on Sep 08, 2009 at 21:49 UTC

    Interestingly enough, the $; variable on my system (Debian GNU/Linux, Perl 5.10.0) is 0x1c, the ASCII FS (file separator) character. Who'da thunkit?

    print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))