Stephen Allen wrote:
I have sucessfully created as Radio-group along the lines of
@TiesArray = SSDArray($uniqueorgref);
if (@TiesArray[0] ne "") {
You are testing a list against a scalar value, but fortunately your list
has only one element. If you had warnings enabled then perl would have
told you to use a scalar instead of a list:
if ( $TiesArray[ 0 ] ne "" ) {
And why are you comparing $TiesArray[ 0 ] to an empty string? Will
$TiesArray[ 0 ] always contain a valid string? Or are you trying to
determine if @TiesArray has any elements at all?
John
--
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction. -- Albert Einstein
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/