tye's solution uses prototypes. Because it does, it must be declared above where it is used. You can either define it above the usage or just declared it above, as seen here:
sub foo (@$);
....
# Some usage of foo() here
....
sub foo (@$) {
# Blah blah blah
}
------ We are the carpenters and bricklayers of the Information Age. Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement. |