in reply to Re: Converting Filehandle to Array call in Object Creation
in thread Converting Filehandle to Array call in Object Creation

The requirements were to start with an array. I suppose you could create $data by joining the contents of the array, but I don't think that's enough because what I said to holli applies to you too.

Replies are listed 'Best First'.
Re^3: Converting Filehandle to Array call in Object Creation
by davidrw (Prior) on Apr 15, 2005 at 15:39 UTC
    Ah. y, i was concentrating more on the variable to filehandle issue rather than the actual data format.. Could still join it, though--just need an extra step to the join.. something like:
    my @data = qw/AAAAAAAAAAAAAAA AAAAAAAGGAAACCA/; my $ct = 0; my $data = join '', map { sprintf ">Seq%d\n%s\n", ++$ct, $_ } @data; my $SH = new IO::Scalar \$data;