Re: how to call sub by value in variable
- From: Brian McCauley <nobull67@xxxxxxxxx>
- Date: Tue, 21 Aug 2007 09:45:57 -0700
On Aug 20, 3:09 am, "Petr Vileta" <sto...@xxxxxxxxxxxxx> wrote:
Brian McCauley wrote:
It's trivial to use CODE symrefs without switching off use strict.
(\&$sub)->($name);
Yippee :-) This is what I looked for.
No! Please no! The above code is using symrefs but not _obviously_
using symrefs. If you are using symrefs your code should look like it
is. The easiest way to do this to put it in a a "no strict 'refs'"
block.
.
- Follow-Ups:
- Re: how to call sub by value in variable
- From: Petr Vileta
- Re: how to call sub by value in variable
- References:
- how to call sub by value in variable
- From: Petr Vileta
- Re: how to call sub by value in variable
- From: Brian McCauley
- Re: how to call sub by value in variable
- From: Petr Vileta
- how to call sub by value in variable
- Prev by Date: Join lines
- Next by Date: Re: writing array to file?
- Previous by thread: Re: how to call sub by value in variable
- Next by thread: Re: how to call sub by value in variable
- Index(es):