Help for this page

Select Code to Download


  1. or download this
      HEADER:
        while (<STDIN>)  {
    ...
                if /^2/;
            print "--> $_";
    }
    
  2. or download this
      HEADER:
        while (my $line = <STDIN>)  {
    ...
                if '2' eq substr $line, 0, 1;
            print "--> $line";
    }
    
  3. or download this
        process_file_header();
        process_file_participants_list();
        process_file_contract_details();
    
  4. or download this
    given (determine_context()) {
        when ( $FOO ) { process_foo(); }
    ...
        when ( $BAZ ) { woo_ha(); }
        default { confused(); }
    }