in reply to Re: No garbage collection for my-variables
in thread No garbage collection for my-variables
In addition to moritz's excellent point that a function that modifies its arguments then could not be called with a literal, I'd also point out that a lot of Perl programmers probably don't know that @_ is full of aliases. I'd been programming in Perl off and on for over ten years before I came to the Monastery and learned that @_ is aliases. I've asked about this feature in interviews I've conducted, and the prospects out there have always been surprised at this feature. Documentation helps, of course, but someone who doesn't know this is possible could spend an awful lot of time debugging before discovering this (as you say) action at a distance.
Thumbs up on the use less, however.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: No garbage collection for my-variables
by BrowserUk (Patriarch) on Sep 16, 2008 at 22:10 UTC | |
by ikegami (Patriarch) on Sep 17, 2008 at 03:10 UTC | |
by betterworld (Curate) on Sep 16, 2008 at 22:35 UTC | |
by BrowserUk (Patriarch) on Sep 17, 2008 at 00:08 UTC | |
|
Re^3: No garbage collection for my-variables
by shmem (Chancellor) on Sep 16, 2008 at 22:48 UTC |