in reply to Re: Re: Re: Joining and splitting two dimensional arrays
in thread Joining and splitting two dimensional arrays

Thanks!--Problems remain.

I tried the freeze/thaw cycle, but I got the error "Can't use an undefined value as an ARRAY reference" when trying to thaw. The code is below:

use Storable qw(freeze thaw); my @Array={}; @Array = @{ thaw( $Pipe->Read() ) );

Any further ideas?

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Joining and splitting two dimensional arrays
by antirice (Priest) on Aug 06, 2003 at 19:08 UTC

    thaw returns a reference to the data structure it creates (just as freeze takes a reference). Only thing I can think of is that the $Pipe->Read() is returning undef. Unfortunately, I haven't used Win32::Pipe and as such am unable to comment on what should be happening. Perhaps a wiser monk would be able to answer.

    antirice    
    The first rule of Perl club is - use Perl
    The
    ith rule of Perl club is - follow rule i - 1 for i > 1