Help for this page

Select Code to Download


  1. or download this
    sub display
    {
    ...
    
        return $output;
    }
    
  2. or download this
    my $outfile = 'temp.txt';
    open(my $fh, '>', $outfile) or die "Cannot open file '$outfile' for wr
    +iting: $!";
    print $fh find_student('x3')->display();
    close($fh)                  or die "Cannot close file '$outfile': $!";