Re: How to dynamically generate function name and call it?
- From: "Brian McCauley" <nobull67@xxxxxxxxx>
- Date: 27 Sep 2006 09:58:41 -0700
Robert 'phaylon' Sedlacek wrote:
*{'Create' . $TableName . 'Table'}->(@arguments);
Or, more simply:
"Create${TableName}Table"->(@arguments);
Note: If you were creating a module, say My::FreakyModule, then I'd
suggest separating all your subroutines that are accessed by symref
into separate namespaces:
"My::FreakyModule::Tables::${TableName}::Create"->(@arguments);
.
- References:
- Re: How to dynamically generate function name and call it?
- From: Robert 'phaylon' Sedlacek
- Re: How to dynamically generate function name and call it?
- Prev by Date: Re: Spread***::ParseExcel on Windows with out Win32::OLE
- Next by Date: Re: Passing object from subroutine problem
- Previous by thread: Re: How to dynamically generate function name and call it?
- Next by thread: Re: How to dynamically generate function name and call it?
- Index(es):