|
|||||||
| Perl Discussion and technical support for using and deploying Perl. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
passing a reference or passing a value into a subroutine
If I'm passing two strings into a subroutine, is it more efficient to pass a reference or the value? If I'm calling this subroutine a lot (possibly recursively) will I see any performance difference between the two ways of passing the strings into the subroutine? Keep in mind these are strings, they aren't very long, and I'm calling this subroutine often.
Any help on performance would be greatly appreciated. Thanks, Chuck |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|