fix mode used to open /dev/tty in perlop example
authorRicardo Signes <rjbs@cpan.org>
Wed, 25 Apr 2012 02:23:18 +0000 (22:23 -0400)
committerRicardo Signes <rjbs@cpan.org>
Wed, 25 Apr 2012 02:27:26 +0000 (22:27 -0400)
(Thanks for reporting this, Tom Christiansen!)

pod/perlop.pod

index 2152f13..7b2d0a3 100644 (file)
@@ -1768,7 +1768,7 @@ failure.
 
 Examples:
 
-    open(TTY, "+>/dev/tty")
+    open(TTY, "+</dev/tty")
        || die "can't access /dev/tty: $!";
 
     <TTY> =~ /^y/i && foo();   # do foo if desired