MU-VMS Archives

September 1996

MU-VMS@LISTSERV.MIAMIOH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Kent Covert <[log in to unmask]>
Reply To:
Miami University OpenVMS <[log in to unmask]>
Date:
Thu, 19 Sep 1996 08:23:20 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
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]

ATOM RSS1 RSS2