Skip to Content
Pro Perl Programming: From Professional to Advanced
book

Pro Perl Programming: From Professional to Advanced

by William Bo Rothwell
February 2020
Intermediate to advanced content levelIntermediate to advanced
337 pages
4h 54m
English
Apress
Content preview from Pro Perl Programming: From Professional to Advanced
© William "Bo" Rothwell of One Course Source, Inc. 2020
W. ". RothwellPro Perl Programminghttps://doi.org/10.1007/978-1-4842-5605-3_3

3. Advanced Features

William “Bo” Rothwell1 
(1)
San Diego, CA, USA
 

Consider this chapter a collection of useful advanced tips to help you create better Perl programs. Each section will begin with a brief description of why you should use the feature or tool, followed by more detailed examples.

Use my iterator variables with for loops

Why

This technique makes it clear that the iterator variable is scoped, that is, not available outside of the for loop. It also prevents subroutine calls from accidently modifying your iterator variable, and it prevents compile time error messages while using the strict pragma.

Consider the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Perl Programming: From Advanced to Expert

Advanced Perl Programming: From Advanced to Expert

William Bo Rothwell
Advanced Perl Programming

Advanced Perl Programming

Sriram Srinivasan
Mastering Perl

Mastering Perl

brian d foy
Pro Perl

Pro Perl

Peter Wainwright

Publisher Resources

ISBN: 9781484256053Purchase LinkPublisher Website