On Tue, Dec 21, 2004 at 5:35 PM, Andy Lester ([EMAIL PROTECTED]) wrote: >On Tue, Dec 21, 2004 at 05:27:06PM -0600, Bryan Baldus ([EMAIL PROTECTED]) wrote: >> Speaking of testing, as I mentioned in my e-mail this morning, I modified >> the lint.t test script by using File::Spec to specify the path to test >> files. Is this acceptable practice, something to be encouraged, or something >> that causes problems?
>It's fine, but should be unnecessary. If you're specifying input like >"t/foo/bar.t", then an open( my $fh, "t/foo/bar.t" ) will work just >fine, because Perl handles that invisibly, converting to 't\foo\bar.t' >for Windows. This does not seem to be the case, at least not using MacPerl or my version of ActivePerl for Windows. When I run the 10.camel.t test, I get a message: not ok 21 - Opened input file isa MARC::File # Failed test (C:\Perl\site\MARC-Record-1.38\t\10.camel.t at line 107) # Opened input file isn't defined Can't call method "next" on an undefined value at C:\Perl\site\MARC-Record-1.38\ t\10.camel.t line 111, <DATA> line 14. Of course, I could be doing something wrong. Thank you for your assistance, Bryan Baldus [EMAIL PROTECTED] [EMAIL PROTECTED] http://home.inwave.com/eija