in reply to Python dict to perl hash
Given only your example, that looks fine. But if the input dict gets more complicated, the method may break, so it's not a good general-purpose solution. If this is a one-time thing, why not replace my $x = ... with the Dumper output, so you've got the hash written directly in Perl? Or, are you looking for a general solution?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Python dict to perl hash
by frozenwithjoy (Priest) on Mar 30, 2015 at 15:24 UTC | |
|
Re^2: Python dict to perl hash
by garg10may (Initiate) on Mar 30, 2015 at 12:01 UTC | |
by hdb (Monsignor) on Mar 30, 2015 at 13:00 UTC | |
by Anonymous Monk on Mar 30, 2015 at 12:21 UTC |