Help for this page

Select Code to Download


  1. or download this
    if (expression) {
        statement (1);
    ...
        statement (2);
        }
    statement (3);
    
  2. or download this
    sub get_filehandle {
        my $self = shift;
    ...
            or die "can't open $self->{file}";
        return $fh;
        }
    
  3. or download this
    sub get_filehandle {
        my $self = shift;
    ...
            die "can't open $self->{file}";
            }
        }
    
  4. or download this
    sub get_lines {
        my $self = shift;
    ...
        $self->{file_handle} ||= $self->get_filehandle ($self->{file});
        return readline ($self->{file_handle}) || undef;
        }