Hi, If I want to run a subroutine passing some parameters, which is the best way to do it if that subroutine won't modify those parameters but just use them?
1. &subroutine(%hash); sub subroutine { %hash = @_; } 2. &subroutine(\%hash); sub subroutine { $ref = shift; $hash = %$ref; } 3. &subroutine(%hash); sub subroutine { $ref = { @_ }; } 4. &subroutine({ %hash }); sub subroutine { $ref = shift; } The most important thing is the speed and using as less memory as possible. Thank you. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>