in reply to Re^3: Hash Pipe Problem
in thread Hash Pipe Problem

So is the problem because the handle is to a pipe and not a file? Would it have worked on a regular file handle?

Replies are listed 'Best First'.
Re^5: Hash Pipe Problem
by almut (Canon) on Feb 26, 2009 at 19:45 UTC

    No. Thing is that it's not a simple scalar (as the docs say). If you assign it to an intermediate variable, such as $fh, it would work.

    my $fh = $ProcesseHandle{$Type}; $Line{$Type} = <$fh>;

    Also note that whitespace, as in < $fh >, isn't allowed either.

      Thanks!
Re^5: Hash Pipe Problem
by Anonymous Monk on Feb 26, 2009 at 19:51 UTC
    $Line{$Type} = readline $ProcesseHandle{$Type};
    Time to put down the the hash pipe :)
      I wondered if anyone would get that pun!