in reply to Re: Need advice on checking two hashes values and keys
in thread Need advice on checking two hashes values and keys

Hey, someone said TIMTOWTDI. hehehe

#!/usr/bin/perl # http://perlmonks.org/?node_id=1129003 use warnings; use strict; $_ = <<END; uno = uno due = dos tre = tres quattro = quatro cinque = cinco sei = seis sette = siete otto = ocho nouve = nueve dieci =diez uno = un due = due tre = tris quattro = quatre cinque = cinq sei = six sette = sept dieci = dix END print "$1 => $2, $3\n" while /^(\w+) = *(\w+)\b(?=.*\n\n.*^\1 = (\w+)) +/gms;

Replies are listed 'Best First'.
Re^3: Need advice on checking two hashes values and keys
by perlynewby (Scribe) on Jun 04, 2015 at 23:32 UTC

    OH MIO DIO! this is a cool way to do it.

    I need to learn ALL KIND of types hashes, hashrefs, hash table,..., for now since I get confused on them but using regex looks cool and will try this method too. pretty cool.