But I copied that dict from somewhere and need to convert it to hash to work upon it.
Hm. His use of "it" implies singular; but it could go either way I suppose.
(I'm just having trouble thinking of a scenario where he'd regularly or repeatedly need to C&P a chunk of Python dict initialisation into a Perl string and the parse it to initialise a hash.)
But then, there are better ways of doing it in Python also:
In reply to Re^4: Python dict to perl hash
by BrowserUk
in thread Python dict to perl hash
by garg10may
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |