Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Storing the log file name as key/value in hash

by tobyink (Canon)
on May 28, 2017 at 07:22 UTC ( [id://1191406]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

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

    No recent polls found