Re: How to dynamically generate function name and call it?



"HS" == Hemant Shah <shah@xxxxxxxxxxxxxxxx> writes:

HS> While stranded on information super highway Brian McCauley wrote:
>>
>> Robert 'phaylon' Sedlacek wrote:
>>
>>> *{'Create' . $TableName . 'Table'}->(@arguments);
>>
>> Or, more simply:
>>
>> "Create${TableName}Table"->(@arguments);

HS> Thanks.

why are you saying thanks and quoting the symref answer? i am always
appalled to see symref answers given out when a dispatch table (as you
were shown) is much safer and a better solution.

uri

--
Uri Guttman ------ uri@xxxxxxxxxxxxxxx -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
.