Try this, or use a more recent version of Perl.
/^(.+?)\.(.+?)\.IP/ and push @{$hash1{$2}}, $1 for @array;
In reply to Re^3: Storing the log file name as key/value in hash
by tobyink
in thread Storing the log file name as key/value in hash
by Magnolia25
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |