Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Socket;
    ...
    my $proto = getprotobyname('tcp');
    socket(SOCKET, PF_INET, SOCK_STREAM, $proto)
     or die "Can't open socket: $!\n";
    
  2. or download this
    perl -e 'print "How sweet does a rose smell? "; chomp $n = <STDIN>; $r
    +ose = "smells sweet to degree $n"; *other_name = *rose; print "$other
    +_name\n"'