Help for this page

Select Code to Download


  1. or download this
    sub remove_cruft
    {
    ...
    my @no_cruft = remove_cruft(@lines);
    # or:
    my @no_cruft = remove_cruft(<FH>);
    
  2. or download this
    # Using prototypes (which are considered "evil" by some)
    sub remove_cruft(@)
    ...
    remove_cruft(@lines)
    # this still doesn't work:
    # remove_cruft(<FH>)
    
  3. or download this
    sub remove_cruft
    {
    ...
      # do stuff to @lines;
      @lines;
    }