Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Ending up with duplicate keys in a hash?

by choroba (Cardinal)
on Jan 11, 2016 at 00:40 UTC ( [id://1152443]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Ending up with duplicate keys in a hash?
in thread Ending up with duplicate keys in a hash?\

The problem remains: $item is still an alias to the members of the @event.
#!/usr/bin/perl use warnings; use strict; sub event_hasher { my $cur_event = shift; my %event_hash; for my $item (@$cur_event) { $item =~ s/://g; my ($key, $value) = split / /, $item; $event_hash{$key} = $value; } return \%event_hash } my @event = ('a:b c:d'); print "@event\n"; my $type = event_hasher(\@event); print "@event\n";
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1152443]
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-25 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found