Help for this page

Select Code to Download


  1. or download this
    for my $in ( <$fh> )
    {
      my @p = map { ... } split /\|/ , $in;
      ...
    }
    
  2. or download this
    for ( <$fh> )
    {
      my @p = map { ... } split /\|/ , $_;
      ...
    }
    
  3. or download this
    print
      join ', '
    ...
          }
          split /\|/ , 'p | q|r|s | t'
          ;
    
  4. or download this
    print
      join ', ' , split /\s*\|\s*/ , 'p | q|r|s | t' ;
    
  5. or download this
    #  input.
    Baw|Vao|111 Noa St||NewYork|NY|10012|2123456789|123456789
    
  6. or download this
    #  code.
        my @fields = (map { s/^\s+//; s/\s+$//, $_ } split /\|/, $_);