Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 imbibing at the Monastery: (4)
As of 2016-08-30 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (424 votes). Check out past polls.