Help for this page

Select Code to Download


  1. or download this
    print {$fh{5}} "to be printed\n";
    
  2. or download this
    my %dispatch:
    sub create_function {
    ...
    # ...
    # later when reading the file, assuming you have obtained a $line and 
    +an id $id from the input:
    $dispatch{id}->($line);