Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: parsing multiple lines

by mwah (Hermit)
on May 21, 2008 at 19:24 UTC ( [id://687830]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ...
    my $fn = 'data.dat';
    ...
    { local $/; $stuff = <$fh> }
    close $fh;
    ...
    
  2. or download this
    ...
    while( $stuff =~ /^ (\d+): \s+            # the number xx: => $1
    ...
       print join "\n\n", $locus, $name, $kegg, $func, $proc, $comp;
    }
    ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-26 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found