Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: canonical doc explaing need for "eval { ... } or do {...}" constructby cavac (Parson) |
on May 10, 2022 at 07:57 UTC ( [id://11143733]=note: print w/replies, xml ) | Need Help?? |
Personally, i usually use something like this:
This may be a good or bad solution. But at least for me, it makes it easier and faster to visually scan the code later in its life cycle and see how it's meant to flow and if there is error handling in 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";'
In Section
Seekers of Perl Wisdom
|
|