On Jan 3, KAVANAGH, Michael said:
>*random_subroutine_name = sub ( ) { 1 };
>
>Is there a name for this kind of operation?
Typeglob assignment? Basically, you're assigning a code reference to a
typeglob, which makes &random_subroutine_name be that function. Compare
that with:
*x = [1,2,3];
print @x; # 123
>What I think is that this is dynamically re-defining an existing subroutine
>to just return true value. Is that a totally stupid guess?
That's right on the money.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]