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

[MacPerl] Mac::standard file dynaloader madness



In my f irst ever use of Mac::StandardFile, I get compilation errors that I
cannot account for. Can anyone enlighten me?

my call: (maybe wrong, I can't get enough sense out of the compiler to fix
it yet...)

use Mac::StandardFile;
my($file);
$file=StandardGetFile(0, 0)
if($file->SfGood()){
open(IN, $file) or die('Could not open file inside Perl script.');
open(OUT, '>results');
}else{die('Could not open file via Toolbox.')}

and MacPerl opens dl_findfile.al in a window and says:

# Useless use of private array in void context.
File 'Hazel:Development:tools:MacPerl
Ä:lib:auto:DynaLoader:dl_findfile.al'; Line 105
# Missing right bracket,File 'Hazel:Development:tools:MacPerl
Ä:lib:auto:DynaLoader:'; Line 108
# syntax error, at EOF
File 'Hazel:Development:tools:MacPerl
Ä:lib:auto:DynaLoader:dl_findfile.al'; Line 108

File 'Hazel:Development:tools:MacPerl Ä:lib:DynaLoader.pm'; Line 145
# BEGIN failed--compilation aborted.
File 'Hazel:Development:projects:perl:search text files:search text
files.pl'; Line 24
# Scalars leaked: 4

I'm really scratching my head on this one.. Is it possible that
dl_findfile.al is a mangled file? Or could such vituperative errors result
from my bad coding alone?

Jason

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch