bwelch has asked for the wisdom of the Perl Monks concerning the following question:
"Use of uninitialized value in concatenation (.) or string at cf.pl line xxx"
I'm not seeing what is not initialized here. Do you?
Since this is taking a long time to complete, could you recommend any optimizations? thanks, Bryan
use strict; use warnings; # Added this line in last run sub build4PartFastaFile { &addDateStamp; my ( $fileToMake, $dbCommand ) = @_; open( FILE, ">$fileToMake" ) or die print "Can't open fileToMake: $! +"; my $sth2 = $dbh->prepare( $dbCommand ) or die print LOG "Can't prepa +re: $! OR $DBI::errstr"; $sth2->execute or die print LOG "Can't execute: $! OR $DBI::errstr"; while ( ( my $giName, my $gssName, my $definition, my $sequence ) = +$sth2->fetchrow_array ) { $sequence = uc( $sequence ); $sequence =~ s/(\S{1,80})/$1\n/g; print FILE ">$giName $gssName $definition\n$sequence"; } close( FILE ); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Finding error: uninitialized value in concatenation?
by Fletch (Bishop) on Mar 02, 2005 at 15:20 UTC | |
Re: Finding error: uninitialized value in concatenation?
by gellyfish (Monsignor) on Mar 02, 2005 at 15:23 UTC | |
Re: Finding error: uninitialized value in concatenation?
by Roy Johnson (Monsignor) on Mar 02, 2005 at 15:27 UTC | |
Re: Finding error: uninitialized value in concatenation?
by tall_man (Parson) on Mar 02, 2005 at 15:48 UTC | |
by bwelch (Curate) on Mar 02, 2005 at 18:59 UTC | |
by tall_man (Parson) on Mar 02, 2005 at 23:36 UTC |