Differences between current version and predecessor to the previous major change of perlopentut(1).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Tuesday, June 4, 2002 12:22:37 am | by perry | |
Older page: | version 1 | Last edited on Tuesday, June 4, 2002 12:22:37 am | by perry | Revert |
@@ -195,9 +195,9 @@
Or the standard Getopt::Long module to permit named arguments:
use Getopt::Long;
-GetOptions(
+!
GetOptions(
Another reason for preprocessing arguments is to make an empty argument list default to all files:
@ARGV = glob(
@@ -588,9 +588,9 @@
use Fcntl;
fcntl(Connection, F_SETFL, O_NONBLOCK)
or die
-Rather than losing yourself in a morass of twisting, turning ioctls, all dissimilar, if you're going to manipulate ttys, it's best to make calls out to the stty(1) program if you have it, or else use the portable POSIX interface. To figure this all out, you'll need to read the termios(3) manpage, which describes the POSIX interface to tty devices, and then POSIX , which describes Perl's interface to POSIX . There are also some high-level modules on CPAN that can help you with these games. Check out Term::ReadKey and Term::ReadLine.
+Rather than losing yourself in a morass of twisting, turning ioctls, all dissimilar, if you're going to manipulate ttys, it's best to make calls out to the stty(1) program if you have it, or else use the portable POSIX interface. To figure this all out, you'll need to read the termios(3) manpage, which describes the POSIX interface to tty devices, and then POSIX , which describes Perl's interface to POSIX . There are also some high-level modules on CPAN that can help you with these games. Check out Term::!
ReadKey and Term::!
ReadLine.
What else can you open? To open a connection using sockets,
you won't use one of Perl's two open functions. See