in reply to Using join() on a MySQL arrayref

    $sn .= $result->[0];

You're not adding any delimiter between the values ... just concatenating them. Try replacing the while loop with:

$sn = join(',', map { $_->[0] } @$ref);

Replies are listed 'Best First'.
Re^2: Using join() on a MySQL arrayref
by fivefiftyone (Acolyte) on Jun 19, 2008 at 19:06 UTC
    Thank you. I'll be kicking myself for not delving a little deeper.