Angerstein am Mittwoch, 22. Februar 2006 11.05: > Short Question: > > Is type globbing of subroutines possible or not?
yes, perl -le 'use warnings; use strict; \ sub sub1{1}; \ *sub2=\&sub1; \ warn sub2(); \ ' > for something like &supersub(\&smallsub); This (passing a subroutine reference as argument to a subroutine): is unrelated to the above. perl -le 'use warnings; use strict; \ sub sub1{shift->()}; \ sub sub2 {2}; \ warn sub1(\&sub2); ' hth Hans -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>