in reply to help in opening file with pipe

Hi,
you would only use the pipe if there was some command that produces some output that you want to catch (e.g. open(CMD, 'ls -l |')). If you only want to open a file for reading, you shouldn't use the pipe operator. See open for details.
Regards,
svenXY

Replies are listed 'Best First'.
Re^2: help in opening file with pipe
by uva (Sexton) on Feb 09, 2006 at 11:08 UTC
    it means we get the output from the command and we use that output as a filename.right

      (Incidentally: s/$/?/)

      No, it's not right. It means that a process is forked for that command and that the output of that command, i.e. what that it will inject into STDOUT is returned to you when you read from the opened filehandle, as if it were the content of an actual file.