Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    select(IO::Socket::INET->new(PeerAddr => shift, PeerPort => shift) or 
    +die "Couldn't connect: $!");
    print
      for <>;
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my $c = $s->accept;
    print
      while <$c>;