in reply to Hash Pipe Problem

D:\>perl -MO=Deparse -e" < $ProcesseHandle{$Type} > use File::Glob (); glob(' ' . $ProcesseHandle{$Type} . ' '); -e syntax OK
You want readline

Replies are listed 'Best First'.
Re^2: Hash Pipe Problem
by NateTut (Deacon) on Feb 26, 2009 at 19:31 UTC
    Thanks, that works, but I'm still cornfused why the original version didn't work. I'm new to Deparse so I don't know what it is telling me.
      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

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