Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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
Domain Nodelet?
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 musing on the Monastery: (4)
As of 2023-03-27 00:56 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (63 votes). Check out past polls.