Drieux wrote: > > I just found this in the perldoc > > " Currently Perl subroutines have fairly limited > support for formal parameter lists. You can specify the > number of parameters and their type, but you still have to > manually take them out of the `@_' array yourself. Write a > source filter that allows you to have a named parameter > list. Such a filter would turn this: > > sub MySub ($first, $second, @rest) { ... } > > into this: > > sub MySub($$@) { > my ($first) = shift ; > my ($second) = shift ; > my (@rest) = @_ ; > ... > } > " > > does this still make sense? > > does it improve the compiled object any? > > and why not > > sub MySub($$@) { > my( $first, $second, @rest ) = @_; > ... > }
They both do the same thing although the second version may be faster (You would have to benchmark to be sure.) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]