Help for this page

Select Code to Download


  1. or download this
    my @lines = <$handle>;
    my %record;
    ...
        next unless /^\|  (\w+)  \| (\d+)/;
        $record{$1} = $2;
    }
    
  2. or download this
    my %record = $data =~ /^\|  (\w+)  \| (\d+)/g;
    
  3. or download this
    my $rec1ref = \substr $data, $offset, $len;
    $$rec1ref = $newval;