File Tests

File Test Operators

Before we start a program that creates a new file, let』s make sure that the file doesn』t already exist so that we don』t accidentally overwrite a vital spreadsheet datafile or that important birthday calendar. For this, we … Read the rest

Hashes

Hash Element Access

To access an element of a hash, use syntax that looks like this:
$hash{$some_key}
This is similar to what we used for array access, but here we use curly braces instead of square brackets around the subscript(key). … Read the rest