khacee has asked for the wisdom of the Perl Monks concerning the following question:
i have an input file containing: gs01.pri1.casino.sbo dns:192.168.101.21,icmp,http:302,https:200,tcp:80,tcp:443,wget
i want to split them like this: gso1.pri1.casino.sbo = $hostname dns:192.168.101.21 = $dns icmp = $icmp http:302 = $http https:200 = $https tcp:80 = $tcp1 tcp:443 = $tcp2 wget = $wget
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: splitting array in filehandling
by GrandFather (Saint) on Apr 06, 2012 at 06:43 UTC | |
by nemesdani (Friar) on Apr 06, 2012 at 06:50 UTC | |
Re: splitting array in filehandling
by brx (Pilgrim) on Apr 06, 2012 at 12:11 UTC | |
Re: splitting array in filehandling
by Anonymous Monk on Apr 06, 2012 at 08:18 UTC |
Back to
Seekers of Perl Wisdom