Help for this page

Select Code to Download


  1. or download this
      
        package CachedFile;
        
    ...
            my ($self) = @_;
            return \$self->{name};
        }
    
  2. or download this
        
        ${$cachedfile->name} = "a_long_file_name";
    
  3. or download this
       
        package Proxy;
        
    ...
            croak $self->{message}
                unless $self->{postcheck}->($self->{original});
        }
    
  4. or download this
        
        package CachedFile;
        
    ...
                             "File name too long!"
                             );
        }
    
  5. or download this
        
         my $file = CachedFile->new("orig_name");
        
        ${$file->name} = "shrt_fl_nm";              # okay
         
        ${$file->name} = "a_long_file_name";        # KABOOM!