Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Mystery character in hash key name

by Roy Johnson (Monsignor)
on Sep 08, 2009 at 19:22 UTC ( #794204=note: print w/replies, xml ) Need Help??

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

    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!


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)))

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2016-10-21 10:12 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (288 votes). Check out past polls.