Three-argument form of open() and I/O disciplines 
Author Message
 Three-argument form of open() and I/O disciplines

Perl v5.6.1 is telling me it doesn't know the open modes '<:raw',
':raw', ':crlf', etc.:

  C:/>touch foo.bar
  C:/>perl -we 'use strict; open FH, "<:raw", "foo.bar" or die; <FH>;'
  Unknown open() mode '<:raw' at -e line 1.
  C:/>perl -we 'use strict; open FH, ":raw", "foo.bar" or die; <FH>;'
  Unknown open() mode ':raw' at -e line 1.
  C:/>perl -we 'use strict; open FH, ":crlf", "foo.bar" or die; <FH>;'
  Unknown open() mode ':crlf' at -e line 1.
  C:/>perl -v | head -8

  This is perl, v5.6.1 built for MSWin32-x86-multi-thread
  (with 1 registered patch, see perl -V for more detail)

  Copyright 1987-2001, Larry Wall

  Binary build 626 provided by ActiveState Tool Corp.
  Built 01:31:15 May  2 2001
  C:/>

What am I missing? Or doing wrong?

(I've reduced the problem to a simple command-line example, but
it's not working in my real script either.)

--
Jim Monty

Tempe, Arizona USA



Sun, 14 Dec 2003 08:15:59 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Three-argument form of open() and I/O disciplines

2. three-part form submission using CGI.pm

3. three-part form submission using CGI.pm

4. open doesn't return child pid under OS/2

5. OS/2 perl and binary open

6. Too many arguments for open

7. Open error message "Invalid argument"

8. multi-argument open (requires 5.6.1)

9. line discipline for perl?

10. Passing form values back to a script as command line arguments

11. FORM ACTION with ?arguments

12. parenthesizing arguments to grep - BLOCK form

 

 
Powered by phpBB® Forum Software