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

Its telling you how that bit of code was parsed. per perlop, If what's within the angle brackets is neither a filehandle nor a simple scalar variable containing a filehandle name, typeglob, or typeglob reference, it is interpreted as a filename pattern to be globbed

<FOO> <$FOO> is readline, but <$foo{barr}> is glob

Replies are listed 'Best First'.
Re^4: Hash Pipe Problem
by NateTut (Deacon) on Feb 26, 2009 at 19:38 UTC
    So is the problem because the handle is to a pipe and not a file? Would it have worked on a regular file handle?

      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!
      $Line{$Type} = readline $ProcesseHandle{$Type};
      Time to put down the the hash pipe :)
        I wondered if anyone would get that pun!