Help for this page

Select Code to Download


  1. or download this
    package Records_tagged;
    
    $Records_tagged::link_file = '/path/to/some/file'; # fully qualified s
    +calar
    our $link_file;                                    # lexical scoped gl
    +obal
    use vars qw($link_file);                           # package scoped gl
    +obal
    
  2. or download this
    package Records_tagged;
    
    ...
        my $class = shift;
        my $self = shift;  # this only makes sense with Records_tagged->ne
    +w(\%hash)
        $self->{link_file} = undef;
    
  3. or download this
    sub new {
        my $class = shift;
        my $self = {};     # create an anonymous hash
        $self->{link_file} = undef;