On Tue, Mar 25, 2008 at 8:30 PM, ANJAN PURKAYASTHA <[EMAIL PROTECTED]> wrote: snip > HP->autoflush(1); snip > Unfortunately this gives me a list of errors: > > perl handle_test.pl > Can't locate object method "autoflush" via package "IO::Handle" at > handle_test.pl line 7. snip
In order to use IO::Handle methods on a file handle you must load IO::Handle with use IO::Handle; Calling a method that doesn't exist is a fatal runtime error, so the first program died. The rest of the errors are due to the first program dying and closing the input pipe to the second program (all of the reads failed and apparently weren't being checked for errors, so it spat out a bunch of undef warnings because it tried to use empty variables and the eventually died when an open call's failure was checked). -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/