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

How to track new CPAN releases

Jul 29, 2013 by David Farrell

cpan
community
configuration
cpan
module
subroutine
sysadmin

CPAN is a fantastic Perl resource with thousands of modules and new ones being added all the time. But how do you keep track of what’s being released? This article describes three techniques for keeping tabs on the latest CPAN releases.

Read it

Re-use code with Perl's anonymous functions

Jul 17, 2013 by David Farrell

development
functional
subroutine
sysadmin

An anonymous function in Perl is an unnamed subroutine. But what are they good for? This article shows how through using anonymous functions it’s possible to write more generic, re-usable Perl code.

Read it

Use the logical-or and defined-or operators to provide default subroutine variable behaviour

Jul 6, 2013 by David Farrell

development
modernperl
operator
subroutine

Perl subroutines do not have signatures so variables must be initialized and arguments assigned to them inside the subroutine code. This article describes two useful shortcuts that can simplify this process.

Read it

Upload to CPAN from the command line

Jun 30, 2013 by David Farrell

cpan
configuration
cpan
sysadmin

It’s super easy with CPAN::Uploader

Read it

Subscribe to Perl Weekly

Jun 27, 2013 by David Farrell

community
community
culture

Stay up to date with Perl news

Read it

Perl hash basics: create, update, loop, delete and sort

Jun 16, 2013 by David Farrell

development
loop
variable
hash
core
delete
add
key
value
pair
length
size

Hashes are one of Perl’s core data types. This article describes the main functions and syntax rules for for working with hashes in 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

Old School Object Oriented Perl

May 20, 2013 by David Farrell

development
object_oriented
old_school_perl
class
object
attribute
inheritance

If you need to write object oriented Perl code with no dependencies, then you need to use the old school Perl syntax. This article describes the main features of old school object oriented Perl including class declaration, constructors, destructors, methods, attributes, accessors and inheritance.

Read it

Perl tokens you should know

May 11, 2013 by David Farrell

development
variable
token
global_variables
__package__
__end__
__data__

A brief review of some useful special literals

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

Use Module::Version to get the version of an installed Perl module

Apr 25, 2013 by David Farrell

tooling
configuration
module

Another cool way to get the version of a module

Read it

Read an entire file into a string

Apr 21, 2013 by David Farrell

data
file
filehandle
open
slurp

TIMTOWDI

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

Installing Perl modules with C library dependencies

Apr 15, 2013 by David Farrell

managing-perl
configuration
cpan
debugging
documentation
linux
networking
sysadmin

How to tackle this tricky config issue

Read it

Crowd funded Perl development: Pinto

Apr 13, 2013 by David Farrell

community
community
culture

Support Perl development with Crowdtilt

Read it

Perl for loops

Apr 12, 2013 by David Farrell

development
loop
array
foreach
for

Perl’s for loops are a powerful feature that, like the rest of Perl can be as concise, flexible and versatile required. This article covers the core features for Perl’s for loops.

Read it

Test if the user is root

Apr 10, 2013 by David Farrell

development
flow
linux
unix
variable
windows
mac

When Perl is executing a program, it maintains the user id of the process owner in a global variable ($<). When a Perl program is executed by root or a user with root privileges (e.g. using the sudo command), the user id variable is always set to zero. This can be checked at the command line:

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

List all Perl modules installed via CPAN

Apr 7, 2013 by David Farrell

cpan
cpan
module
sysadmin

A quick way to list all non-core modules installed via CPAN using the command line:

Read it
« Older Posts
Newer Posts »
Page 20 of 57
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.