Help for this page

Select Code to Download


  1. or download this
    my @data = ();
    while ( my $line = <IN>) {
      last if ($line =~ /^__METADATA__$/);
    ...
    }
    # assuming no multivalue keys
    my %metadata = map { chomp $_; split( $_, /:/, 2) } (<IN>);
    
  2. or download this
    while (my $line = <IN>) {
      last if ($line =~ /^__DATA__$/);
    }
    my @data = <IN>;