Re: MacPerl Script on OS X

[email protected] (Eberhard Lisse)
Newsgroups perl.macosx
Organization Dr Eberhard W Lisse
Message-ID <[email protected]>
Ben,

on 2/29/08 7:15 PM Jay Savage said the following:
> On Thu, Feb 28, 2008 at 7:13 PM, Ben Crane <[email protected]> wrote:

>> Thanks for your response copied below. I really don't want to go to Perl 5.x
>> and all that newfangled stuff.

This can only be described as really shortsighted. Not only because this
is the very issue you are having :-)-O

>> Here's my code ending with the offending line 7 according to my BBEdit error
>> msg also copied below. I think the problem must be something simple. BBEdit
>> says the syntax is OK, and it does run OK under Classic. I've tried
>> different path name conventions, ( / instead of : ) but that doesn't seem to
>> help. All files have 777 permissions.

>>  7 open ("trans", "g5hd:newScansImages:trans") or die "Error, can't open";

Assuming read only:

open (TRANS, "</Volumes/g5hd/newScansImages/trans")
     or die "Error can't open $!\n";

or

open (TRANS, "</newScansImages/trans")
      or die "Error, can't open /newScansImages/trans, $!\n";

greetings, el
-- 
If you want to email me, replace nospam with el
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.