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

Re: Mystery character in hash key name

by Roy Johnson (Monsignor)
on Sep 08, 2009 at 19:22 UTC ( [id://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
    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://794204]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-19 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found