Preparing for Perl 7
Last updated on 2020-06-24
About the Book
Sawyer X, Perl’s volunteer Project Lead, announced at The Perl Conference in the Cloud that Perl will make the jump to a new major version, Perl 7. This allows the next version to accept saner, more modern default settings. So far, Perl 5 has been compatible back its first release in 1994. Perl 7, expected to be released within the next year, sets defaults and enables features that most people use today. When Perl 7 is released, Perl 5 will go into long term maintenance for an extended window far beyond its normal two-year, two version support policy. Supported Perl 5 versions will continue to get important security and bug fixes.
Perl 7 will be essentially Perl 5.32, released in June 2020, but with different default settings. For instance, the strict and warnings features will automatically be enabled. These are already encouraged in Perl 5 but must be enabled by the programmer. The next major version will include a compatibility mechanism to reset all defaults to work with Perl 5.32. Perl 7 is already under development and major stakeholders are testing pre-release versions.
Table of Contents
- Preface
- How to read this book
- Prior Perl experience
- A note on links
- Other books that may help
- What about Perl 6?
- About the publisher
- Acknowledgments
- Other books by brian
- Introduction
- A new social contract
- The history of major releases
- A path forward
- Managing the change
- Upgrading legacy Perl
- Helpful Perl features
- Load modules from the command line
- Perl Critic
- Set up Perl::Critic
- A Perl 7 profile
- A warning about dynamic policies
- Further reading
- Strictures
- Strict categories
- Soft references
- Poetry mode
- Variable declarations
- All together now
- What you need to do now
- What we don't know yet
- Further reading
- Warnings
- The warnings pragma
- Warning categories
- Old school warnings
- A bit of wisdom
- Fatal warnings
- What you need to do now
- Test for warnings
- What we don't know yet
- Further reading
- Bareword filehandles
- The problem with barewords
- The standard filehandles
- Autovivified handles
- What you need to do now
- What we don't know yet
- Further reading
- Prototypes
- Hints for the parser
- The :prototype attribute
- What you need to do now
- Local uses
- Updating my modules
- What we don't know yet
- Further reading
- Signatures
- What you need to do now
- What we don't know yet
- Further reading
- Indirect Objects
- Indirect object notation
- Turn off indirect notation
- Indirect filehandles
- What you need to do now
- What we don't know yet
- Further reading
- Multidimensional arrays
- Concatenating indices
- Sparse arrays
- What you should do now
- Proper multidimensional arrays
- What we don't know yet
- Further reading
- Miscellany
- Stop doing these things
- 0 .. "-1"
- Changing the array base
- False postfix conditions
- Unescaped literal left brace
- Unquoted empty heredoc terminators
- Smart-match, given-when
- dot in
- @INC
- Lexical
- $_
- autoderef
- Vertical tab in \s
- Expanded character class definitions
- Stop doing these things
- Compatibility modes
- Return to Perl 5
- module::compatibility
- Conclusion
- Fix that code
- Promote Perl 7
- Respond to questions about Perl 6
- Open questions
- Feature table
- Changes to this book
Authors have earned$9,038,618writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them

