Help for this page

Select Code to Download


  1. or download this
    sub splitit {
        my ($left, @words, $right, $doit) = split /\s+/, shift;
    ...
    If you tell me, I'll forget.
    If you show me, I'll remember.
    If you involve me, I'm calling the cops.
    
  2. or download this
    #!/usr/bin/env perl
    #
    ...
        };
        return $doit->( '', '', @words);
    }
    
  3. or download this
    sub splitit {
        my @words = split /(\s+)/, shift;
    ...
        }
        return $left, $right;
    }