in reply to Joining if an array

If you're asking about joining if the value in $in is an array reference then something like my $in = ref($scalar) eq 'ARRAY' ? join( ',', @{$scalar} ) : $scalar; but there's a mild hint of XY problem in the air.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: Joining if an array
by Rodster001 (Pilgrim) on May 01, 2009 at 15:49 UTC
    "XY problem in the air" applies to 99% of all my posts. I am going to have that etched on my tombstone. "Here lies Rodster, he shouldn't be here though; it's an XY thing" ;)