Help for this page

Select Code to Download


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