CodeX
Published in

CodeX

Get out early with Perl statement modifiers

Photo by Pixabay on Pexels.com

When I first start­ed writ­ing Perl in my ear­ly 20’s, I tend­ed to fol­low a lot of the struc­tured pro­gram­ming con­ven­tions I had learned in school through Pascal, espe­cial­ly the notion that every func­tion has a sin­gle point of exit. For example:

sub double_even_number {
# not using signatures, this is mid-1990's code
my $number = shift;

--

--

--

Everything connected with Tech & Code. Follow to join our 900K+ monthly readers

Recommended from Medium

2020 or beyond, the path to becoming a web developer remains the same.

Specificity is the process by which a browser determines what CSS property values to apply to an…

color swatches

Give or Take

Abstract Data Types (in Python)

Data Structures In A Nutshell

JUnit 5 features

Hi. I am in 11th commerce in India i need to get into software field in usa so what should i do to…

Will new ecosystems make us, programmers, feel human again?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mark Gardner

Mark Gardner

Just another desperate Perl hacker

More from Medium

Pair Programming

Date/Time and Daylight saving for Programmers

How the War in Ukraine Will Impact on the Global Software Development Market

Liskov Substitution Principle