in reply to Re: Problem with function
in thread Problem with function

If you're going to pass $type into the function I'd do this:
sub summary { my $type = shift || return '';
To avoid warnings later when someone forgets and tries to
print summary();

Replies are listed 'Best First'.
Re: Problem with function
by jonadab (Parson) on May 05, 2006 at 21:23 UTC
    I think in that case I'd prefer to *have* the warnings.