Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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.


Comment on Re: Mystery character in hash key name
Select or Download Code
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)))

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2015-07-04 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls