Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Create output from Perl hashby Eily (Monsignor) |
on Feb 13, 2018 at 10:35 UTC ( [id://1209053]=note: print w/replies, xml ) | Need Help?? |
I was about to say that since my %hash is inside the loop you get a new empty hash on each iteration, but on closer look it seems you don't even need the hash in the first place. Just check if $line =~ /MSISDN=(.*);/, if true, then $MSISDN is $1 (you don't even have to remove the leading whitespace). But then again your expected output contains a lot of data that is not in your input, so it's very unclear how you are supposed to obtain it.
In Section
Seekers of Perl Wisdom
|
|