Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: variable mystery

by parv (Parson)
on Nov 29, 2008 at 07:59 UTC ( [id://726741]=note: print w/replies, xml ) Need Help??

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 /\|/, $_);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://726741]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-18 01:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found