Help for this page

Select Code to Download


  1. or download this
    sub get_schoolname( $ )
    {
    ...
        close( SCHOOLDATA );
        return( $schoolname );
    };
    
  2. or download this
    use Test::More tests => 4;
    
    ...
        is(get_schoolname(-1), undef, 'bad id rejected');
        is(tell(*SCHOOLDATA{IO}), 0, 'filehandle still open');
    };