3 ms·
In addition to the explanation by a1369209993's explanation (https://news.ycombinator.com/item?id=9438730 https://news.ycombinator.com/item?id=9438730): *
by prakashk 11y ago
In addition to the explanation by a1369209993's explanation (https://news.ycombinator.com/item?id=9438730 https://news.ycombinator.com/item?id=9438730):
* <> reads from file(s) specified as command-line arguments (data.json in this case)
* Option -0777 tells Perl to slurp the whole file
* Option -MJSON loads the JSON module