Help for this page

Select Code to Download


  1. or download this
    sub mysub {
       tie my $tied, 'MyClass';
    ...
    }                      # the fetched value.
    
    my $not_tied = mysub();
    
  2. or download this
    tie my $tied, 'MyClass';
    my $not_tied = $tied;  # Calls FETCH and assigns
                           # the fetched value.
    
  3. or download this
    sub mysub {
       tie my $tied, 'MyClass';
    ...
    
    print($$ref_to_tied1, "\n");  # Calls $tied's FETCH.
    print($$ref_to_tied2, "\n");  # Calls $tied's FETCH.