Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: hash key

by haukex (Archbishop)
on May 30, 2017 at 14:48 UTC ( [id://1191596]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    # double-check that all values are equal to keys
    use Test::More tests=>32;
    is $_, $hash{$_}, qq{"$_"} for values %hash;
    
  2. or download this
    use Data::Dump;
    my $var = '"T::c"';
    dd $var;               # $var eq "\"T::c\""
    $var =~ s/^"(.*)"$/$1/;
    dd $var;               # $var eq "T::c"
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-23 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found