Help for this page

Select Code to Download


  1. or download this
    fileno is 2
    fileno is 2
    That's all, folks!
    
  2. or download this
    sub new {
        die "$0: main::new() sub called\n";
    ...
        require "IO/Handle.pm";
        return IO::Handle::->new();
    }
    
  3. or download this
    print OUTPUT while <INPUT>;
    
  4. or download this
    $op = shift() || die;
    for (@ARGV) {  
    ...
        eval $op; die if $@;
        rename($was, $_) || die "rename: $!" unless $was eq $_;
    }
    
  5. or download this
    sub fhbits {
       my(@fhlist) = split(' ',$_[0]);
    ...
       $bits;
    }
    $rin = fhbits('STDIN TTY SOCK');
    
  6. or download this
    sub fhbits {
       my @fhlist = split(" ", $_[0]);
    ...
       return $bits;
    }
    $rin = fhbits(*STDIN, *TTY, *SOCK);
    
  7. or download this
    no strict; no warnings; no less tricksy;
    foo(lish);
    ...
    come on, please give up;
    package UNIVERSAL;
    sub AUTOLOAD { print "I am masquerading as $AUTOLOAD(@_)\n" }