RobertCraven has asked for the wisdom of the Perl Monks concerning the following question:
Hello all,
I am sorry for the probably stupid question, but I get a warning "Useless use of string in void context" for the elsif statement:
my $dbh; if($A->{genome} eq 'hg18'){ $dbh = $A->{E}->connectDatabase($A->{cfg},'/cfg/db/hg18tg', __LINE +__); } elsif($A->{genome} eq 'hg19'){ $dbh = $A->{E}->connectDatabase($A->{cfg},'/cfg/db/hg19tg', __LINE +__); } else{"'$A->{genome}' not valid"}
Any suggestion greatly appreciated!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Useless use of string in void context
by moritz (Cardinal) on Jul 22, 2011 at 09:59 UTC | |
by RobertCraven (Sexton) on Jul 22, 2011 at 10:27 UTC | |
by Anonymous Monk on Jul 22, 2011 at 10:40 UTC | |
by AnomalousMonk (Archbishop) on Jul 22, 2011 at 19:01 UTC | |
by anonymized user 468275 (Curate) on Feb 17, 2015 at 10:36 UTC |