
Laurent_R
Enthusiast
Sep 28, 2012, 6:02 AM
Views: 832
|
|
Re: [geneclicker] Help with DNA sequence software
|
|
|
Hi, you should tell on which line you get your error message. This code: my @params = (); while ( my $param = shift ) { push @params, $param; } unless ( scalar @params == 4 ) { print "$0 <input fasta file> <block size> <block label> <output file>\n"; exit; } my ( $inputFile, $blockSize, $blockLabel, $outputFile ) = @params; print "Input seems to be valid. Now I will try reading the contents of $inputFile..."; coluld be simplified as follows: print "$0 <input fasta file> <block size> <block label> <output file>\n" and die unless $ARGV == 4; my ( $inputFile, $blockSize, $blockLabel, $outputFile ) = @ARGV;
(This post was edited by Laurent_R on Sep 28, 2012, 6:16 AM)
|