Help for this page

Select Code to Download


  1. or download this
    my @stuff;
    while (<FILEHANDLE>) {
      chomp;
      push @stuff, { map {split /\s*=\s*/} split /,\s*/ }
    }
    
  2. or download this
    my @stuff;
    while (<FILEHANDLE>) {
    ...
      my %record = map {split /\s*=\s*/} split /,\s*/;
      push @stuff, \%record;
    }
    
  3. or download this
    my @stuff;
    while (<FILEHANDLE>) {
    ...
      my %record = @keysandvalues;
      push @stuff, \%record;
    }
    
  4. or download this
    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}}
    split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/