Perl Code Snippets

Perl Search for Files and Directories

Perl Remove Directory

Perl Extract File and Directory Names from Full Paths

Perl Copy File

Perl Command Line Options

Perl Environment Variables

Perl Check File Exists

Perl Get User Input

Perl Upper Case

Perl String Comparison

Perl Exit Error

Perl Get Number of Lines of an Array

Perl Change Directory

Perl Number Comparison

Perl Delete File

Perl Delete List of Files

Perl Read a List of Files and Directory Names

Perl For Loop

Perl Foreach

Perl Search for a Pattern in an Array

Perl Directory Exists

Perl Sort Array

Perl Print Formatted Text

Perl Create Directory

Perl Replace Text Remove White Space

Perl Dynamically Add to an Array

Perl String Length

Perl File Extension Regular Expression Check

Perl Hash Definition

Perl Split String

Perl Hash Loop

Perl Pass Parameters to Function

Perl Current Working Directory

Perl Number of Command Line Arguments

Perl Split into Variables and Array

Perl Substring

Perl While Loop

Perl Remove Trailing Characters

Perl Initialize an Array

Tags:

Add a Comment

Your email address will not be published. Required fields are marked *