Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
n.b this is just a snippet of code. also i want to print say $array2 etc#! /usr/local/bin/perl -w use strict; open (FILE, $ARGV[0]) or die "unable to open file"; open (OUTFILE, ">$ARGV[1]"); my @array = <BLASTX>; my $line; split_file (@array); sub split_file { # my $line = $_; chomp ($line); # my @array = @_; my (@array) = split(/\s+/, $_); $array[8] =~ s/\%//g; return @array; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split function
by Zaxo (Archbishop) on Jun 18, 2002 at 10:28 UTC | |
|
Re: split function
by Ido (Hermit) on Jun 18, 2002 at 10:29 UTC | |
|
Re: split function
by zejames (Hermit) on Jun 18, 2002 at 10:47 UTC |