From: Perl 5 Porters Date: Thu, 25 Jul 1996 03:21:20 +0000 (+0000) Subject: perl 5.003_01: vms/perlvms.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1c9f8daada8b588a614aea510638b830b9cad417;p=p5sagit%2Fp5-mst-13.2.git perl 5.003_01: vms/perlvms.pod Mention VMS::Filespec routines in discussion of file syntax Update documentation of binmode() -- now used as a hook for disabling carriage control interpretation on record-structured files Mention that the CORE "time" operator returns a Unix-like time --- diff --git a/vms/perlvms.pod b/vms/perlvms.pod index a66df9c..b7804f0 100644 --- a/vms/perlvms.pod +++ b/vms/perlvms.pod @@ -165,12 +165,20 @@ We have tried to make Perl aware of both VMS-style and Unix- style file specifications wherever possible. You may use either style, or both, on the command line and in scripts, but you may not combine the two styles within a single fle -specification. Filenames are, of course, still case- -insensitive. For consistency, most Perl routines return -filespecs using lower case letters only, regardless of the -case used in the arguments passed to them. (This is true -only when running under VMS; Perl respects the case- -sensitivity of OSs like Unix.) +specification. VMS Perl interprets Unix pathnames in much +the same way as the CRTL (I the first component of +an absolute path is read as the device name for the +VMS file specification). There are a set of functions +provided in the C package for explicit +interconversion between VMS and Unix syntax; its +documentation provides more details. + +Filenames are, of course, still case-insensitive. For +consistency, most Perl routines return filespecs using +lower case letters only, regardless of the case used in +the arguments passed to them. (This is true only when +running under VMS; Perl respects the case-sensitivity +of OSs like Unix.) We've tried to minimize the dependence of Perl library modules on Unix syntax, but you may find that some of these, @@ -351,9 +359,19 @@ need an approximation of the file's protections. =item binmode FILEHANDLE -The C operator has no effect under VMS. It will -return TRUE whenever called, but will not affect I/O -operations on the filehandle given as its argument. +The C operator will attempt to insure that no translation +of carriage control occurs on input from or output to this filehandle. +Since this involves reopening the file and then restoring its +file position indicator, if this function returns FALSE, the +underlying filehandle may no longer point to an open file, or may +point to a different position in the file than before C +was called. + +Note that C is generally not necessary when using normal +filehandles; it is provided so that you can control I/O to existing +record-structured files when necessary. You can also use the +C function in the VMS::Stdio extension to gain finer +control of I/O to files and devices with different record structures. =item crypt PLAINTEXT, USER @@ -503,6 +521,12 @@ in the same fashion as typiing B at the DCL prompt. Perl waits for the subprocess to complete before continuing execution in the current process. +=item time + +The value returned by C