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

Re: parse problem

by DrManhattan (Chaplain)
on Apr 20, 2003 at 02:05 UTC ( #251761=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my $data = 'gi|12345678|ref|NP_001234.1|';
    my @data = split /\|/, $data;
    my $number = $data[1];
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    
    my $data = 'gi|12345678|ref|NP_001234.1|';
    my $number = (split(/\|/, $data))[1];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2014-10-30 23:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (211 votes), past polls