in reply to Re^2: Storing the log file name as key/value in hash
in thread Storing the log file name as key/value in hash

Try this, or use a more recent version of Perl.

/^(.+?)\.(.+?)\.IP/ and push @{$hash1{$2}}, $1 for @array;

Replies are listed 'Best First'.
Re^4: Storing the log file name as key/value in hash
by Magnolia25 (Sexton) on May 28, 2017 at 08:13 UTC
    Thank you so much. One last thing please need to write the output to a file as

    keyValue : <comma separted values>

    Thanks once again for your time.