in reply to Re^7: Perl Contempt in My Workplace
in thread Perl Contempt in My Workplace
Technically, yes. But nearly all JSON parsers i've seen are designed to slurp in everything all at once and turn it into a in-memory data structure. So for very large files, you might (or might not) have to cobble together a custom parser that can do a stream-as-you-go approach.
Of course, that's where Perl comes into its own. Munching insanely huge text files is what it was designed for in the first place ;-)
perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^9: Perl Contempt in My Workplace
by erix (Prior) on May 28, 2021 at 11:03 UTC | |
by cavac (Parson) on May 28, 2021 at 14:28 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
In Section
Meditations