Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: variable mystery

by parv (Vicar)
on Nov 29, 2008 at 07:59 UTC ( #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? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-08-12 08:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?