For those interested the code of the first snippet should read:
Other examples have a confusion between proc and procedure.
One again, apologies.
© 2016, O’Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.