Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Throw compilation error(or warning) if duplicate keys are present in hash

by TJPride (Pilgrim)
on Nov 24, 2011 at 14:06 UTC ( [id://939897]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    use strict;
    use warnings;
    ...
            $hash->{"${key}_$j"} = $val;
        }
    }
    
  2. or download this
    $VAR1 = {
              'one' => '1',
              'one_2' => '3',
    ...
              'two_2' => '5',
              'three' => '4',
            };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found