slok has asked for the wisdom of the Perl Monks concerning the following question:
==
main::display_results() called too early to check prototype at ...line..
===
what could be the problem?
the script proceed to run the routine and print out the results, but what causes the message?
=====
display_results(@sorted, $num); sub display_results (@$) { my @sorted = @_; my $number = $_; my $count = 0; print("User Disk Usage \n"); print("==== =====================\n"); foreach (@sorted) { printf ("Hello %10d %s\n", $size{$_}, $_); $count++; if ($count > $num) { exit; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: calling sub routine problem?
by tye (Sage) on Apr 22, 2001 at 11:08 UTC | |
|
Re: calling sub routine problem?
by Eureka_sg (Monk) on Apr 22, 2001 at 13:15 UTC | |
|
Re: calling sub routine problem?
by dvergin (Monsignor) on Apr 22, 2001 at 08:50 UTC |