|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^4: Executing a string as a Perl commandby Jenda (Monsignor) |
| on May 11, 2011 at 21:10 UTC ( #904251=note: print w/ replies, xml ) | Need Help?? |
|
Depends. If the variable contains a short string, then the slow down will be negligible. If it contains a number and the subroutine needs to do some more computations, then you've just forced perl to convert the number to a string and back. If nothing more, it's wasteful. Then there is yet another case. What if the variable contains a huge string? You've just made yet another copy ... Jenda
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||