- or download this
sub remove_cruft
{
...
my @no_cruft = remove_cruft(@lines);
# or:
my @no_cruft = remove_cruft(<FH>);
- 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>)
- or download this
sub remove_cruft
{
...
# do stuff to @lines;
@lines;
}