Subject: | |
From: | |
Reply To: | |
Date: | Thu, 19 Sep 1996 08:23:20 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
In article <[log in to unmask]>, [log in to unmask]
u (Micah James Cooper) writes:
> How do you open files in another directory using perl on the VAX?
> ie: It didn't seem to like open(FILE, "[hon.muhonors.www]prepend.txt")
> much, or is this correct and something else was wrong?
This should work just fine. Try something like:
open(FILE, "[hon.muhonors.www]prepend.txt") || die "Error opening file: $!";
This will print the actual error message (it's stored in $!) for the error
you're getting. This may help determine the problem.
Perl on VMS should also accept something like this:
open(FILE, "/sys_users/hon/muhonors/www/prepend.txt");
--
Kent Covert, Software Coordinator
Miami Computing and Information Services
Miami University, Oxford, OH
[log in to unmask]
|
|
|