Link to home
Start Free TrialLog in
Avatar of naseeam
naseeamFlag for United States of America

asked on

open statement help needed

In the following code, what does open TEMP do?  Is TEMP a file.  ddump dumps the debugging information.  Is it dumped in the TEMP file.  If TEMP is created, in which directory can I find it?

open TEMP, "$ddump -D $elf|" or die("\nError dumping file!\n");
Avatar of Adam314
Adam314

In this case, open will run the command "$ddump -D $elf", and create a filehandle named TEMP as a pipe from that program.
When your program reads from TEMP, it will be reading the output from the $ddump program.
Avatar of naseeam

ASKER

I thought there is a file coupled with every file handle.  Which file goes with TEMP filehandle.  
It looks like the output of ddump program are stored in TEMP filehandle, instead of a file.
Am I understanding this correctly?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Adam314
Adam314

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of naseeam

ASKER

Quick Response.  Almost Immediate.