- or download this
use strict;
use warnings;
use 5.010; #if you are using perl 5.10 or greater
- or download this
open SHAKESPEARE, "complete_works.txt"
or die "The haunted grave of Shakespeare won't open: $!";
- or download this
*someName
- or download this
$x -- scalar
@x -- array
...
&x -- subroutine
(as well as a filehandle named x)
- or download this
my $file = 'out.txt'
open my $sh, $file or die ...