in reply to Problem printing JSON type output
Welcome to the monastery!
This little piece of code might help.
while (my $row = <$fh>) { chomp($row); next if $row =~ /^cd|^#|^$/; # skip lines $row =~ /xruntime\/([a-z0-9]+)_/; # regexp pattern matc +hing with memory () print "\t{ \"{#BOBINSTANCE}\":\"$1\"}\n"; # print memory regist +er $1 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem printing JSON type output
by jonathan.vanderwatt (Initiate) on Jul 14, 2015 at 12:00 UTC | |
by jonathan.vanderwatt (Initiate) on Jul 14, 2015 at 12:17 UTC |