in reply to Re: No garbage collection for my-variables
in thread No garbage collection for my-variables
other_function(decode 'latin-1', 'string_literal')) # and if you want to change a variable $var = decode('latin-1', $var);
On the other hand if you do change the the arguments of the sub, the first one requires another variable, which is a real kludge (visually, at least)
do { my $var = 'string_literal'; decode('latin-1', $var); other_function($var); } # and the other one decode('latin-1', $var)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: No garbage collection for my-variables
by BrowserUk (Patriarch) on Sep 16, 2008 at 21:57 UTC | |
by moritz (Cardinal) on Sep 16, 2008 at 22:36 UTC | |
by BrowserUk (Patriarch) on Sep 17, 2008 at 00:06 UTC | |
by moritz (Cardinal) on Sep 17, 2008 at 07:19 UTC | |
by BrowserUk (Patriarch) on Sep 17, 2008 at 08:28 UTC | |
by kyle (Abbot) on Sep 17, 2008 at 03:19 UTC | |
by BrowserUk (Patriarch) on Sep 17, 2008 at 05:53 UTC | |
| |
|
Re^3: No garbage collection for my-variables
by Porculus (Hermit) on Sep 16, 2008 at 21:57 UTC | |
by ikegami (Patriarch) on Sep 17, 2008 at 03:02 UTC | |
by vrk (Chaplain) on Sep 17, 2008 at 08:20 UTC |