• MORE:
  • Perl Camel
  • rss
  • GitHub logo
Perl.com
  •   ABOUT
  •   AUTHORS
  •   CATEGORIES
  • #
      TAGS

Interview: Trying to Catch Paul "LeoNerd" Evans

Mar 30, 2021 by Mark Gardner

community
perl
interview
cpan
syntax
core
object-oriented
future
async-await
promises
asynchronous-programming
perl-7
corinna

The prolific CPAN and Perl core developer talks about exceptions and other Perl topics.

Read it

My Perl Wishlist: Invariant Sigils (Part 1)

Oct 27, 2019 by Christopher White

programming-languages
perl-internals
syntax
internals
compiler
perl-5
language
language-design
sigil
parser
parsing
perl-parsing
core
c

The change I would most like to see in Perl 5, and why it might not happen

Read it

Check your DuckDuckGo cheatsheets with Perl

Aug 28, 2015 by David Farrell

testing
syntax
json
cheatsheet

Zero-in on any defects with this Perl script

Read it

Display beautiful Perl code in HTML without JavaScript

Jan 13, 2014 by David Farrell

web
module
syntax
html
javascript

PPI::Prettify makes pretty-printing Perl code as HTML easy

Read it

Banish unsightly variable assignments with Method::Signatures

Sep 8, 2013 by David Farrell

development
subroutine
syntax
method

Add subroutine signatures to Perl

Read it

Use do to execute Perl code stored in files

Jun 5, 2013 by David Farrell

development
file
syntax
wizardry
eval
do

It’s cleaner than eval

Read it

Execute Perl code stored in a text file with eval

May 28, 2013 by David Farrell

development
filehandle
string
syntax
wizardry
eval

Runtime abitrary code execution

Read it

Dynamic variable names with a dereferencing block

May 2, 2013 by David Farrell

development
regex
variable
dereference
syntax

Perl is remarkably flexible and allows you to achieve all kinds of wizardry with the language. One example of this is using a dereferencing block to use a scalar value as a variable name. This allows you to use variables with dynamic names.

Read it

The conditional (ternary) operator

Apr 16, 2013 by David Farrell

development
operator
syntax

One way to reduce the verbosity of Perl code is to replace if-else statements with a conditional operator expression. The conditional operator (aka ternary operator) takes the form: logical test ? value if true : value if false.

Read it

List shortcuts: qw the quote whitespace operator

Apr 9, 2013 by David Farrell

development
operator
string
array
syntax

A popular way to build a list of literal quotes in Perl is to use the quote whitespace operator (qw). It’s terse, versatile and elegant. To see why, let’s look at a typical statement using a list of strings:

Read it

Perl arrays 101 - create, loop and manipulate

Apr 4, 2013 by David Farrell

development
array
syntax
push
pop
shift
unshift
foreach

Arrays in Perl contain an ordered list of values that can be accessed using built-in functions. They are one of the most useful data structures and frequently used in Perl programming.

Read it

Upgrade your list printing using field separator variables

Apr 3, 2013 by David Farrell

development
string
variable
scalar
array
syntax

A typical way to print every element of an array in Perl is using a foreach loop:

Read it

Perl string functions - concatenate substring and split

Mar 31, 2013 by David Farrell

development
operator
string
syntax

Perl has many string functions, let’s take a look at a some of the most common ones: concatenate, substring and split.

Read it

Find the index of the last element in an array

Mar 28, 2013 by David Farrell

development
array
dereference
syntax

Most Perl programmers know that to find the size of an array, the array must called in a scalar context like this:

Read it

You don't need a shebang line

Mar 25, 2013 by David Farrell

development
configuration
syntax

Read it

New Features of Perl 5.14: Non-destructive Substitution

May 18, 2011 by chromatic

development
language
perl-5
perl-5-14
syntax

Perl 5.14 adds non-destructive substitution.

Read it

New Features of Perl 5.14: package BLOCK

May 16, 2011 by chromatic

development
language
perl-5
perl-5-14
syntax

Perl 5.14 adds a package BLOCK declaration.

Read it
Page 1 of 1
Site Map
  • Home

  • About

  • Authors

  • Categories

  • Tags

Contact Us

To get in touch, send an email to perl.com-editor@perl.org, or submit an issue to perladvent/perldotcom on GitHub.

Perl Camel rss GitHub logo

License

This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

Creative Commons License

Legal

Perl.com and the authors make no representations with respect to the accuracy or completeness of the contents of all work on this website and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. The information published on this website may not be suitable for every situation. All work on this website is provided with the understanding that Perl.com and the authors are not engaged in rendering professional services. Neither Perl.com nor the authors shall be liable for damages arising herefrom.