[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] 5.1.0 r2 and FileHandle



At 10:29 AM +0100 on 11/20/96, Matthias Ulrich Neeracher wrote:


}Wailer <banshee@gabriella.abattoir.com>
}>However the most annoying problem is macperl crashing on a trap when I
}>attempt to use the FileHandle module.  Simply put, use of:
}>
}>use FileHandle;
}>
}>crashes under macperl.
}
}Oops. It shouldn't quite crash.

Doesn't on mine.  Of course, unless you cut it out, this doesn't say
"crashes under MacPerl 5.1.0r2".

}
}The reason why it doesn't work is that as of 5.1.0, MacPerl uses IO::Handle
}instead of FileHandle.

But FileHandle should (and does under the 68k app) still work.  The reason
it might fail (but not crash!) is line 290, which I've thought about filing
a Perl bug report on, since a module should never change the name that the
user gives it for a file.   Do the obvious fix by hand, or get it from
<ftp://mors.gsfc.nasa.gov/pub/MacPerl/Scripts/Fixed_Library_Routines/>

I thought the relationship between FileHandle and IO::Handle is that the
latter is a later version of the former, but that FileHandle would always
still work because of history.  For one thing, it's prominently mentioned
in the Camel, while IO::Handle is nowhere to be found.

}
}Matthias
}
}-----
}Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
}  "And that's why I am going to turn this world upside down, and make
}   of it a fire so *bright* that someone real will notice"
}                                -- Vernor Vinge, _Tatja Grimm's World_


--------
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693
Greenbelt, MD 20770
schinder@pjstoaster.pg.md.us