Tk
view release on metacpan or search on metacpan
Event/Event/IO.pm view on Meta::CPAN
return $imode;
}
sub fileevent
{
my ($widget,$file,$mode,$cb) = @_;
my $imode = imode($mode);
unless (ref $file)
{
no strict 'refs';
$file = Symbol::qualify($file,(caller)[0]);
$file = \*{$file};
}
my $obj = tied(*$file);
unless ($obj && $obj->isa('Tk::Event::IO'))
{
$obj = tie *$file,'Tk::Event::IO', $file;
}
if (@_ == 3)
{
# query return the handler
TextList/Reindex.pm view on Meta::CPAN
$w->_callbase('Populate',$args);
$w->ConfigSpecs(-linestart => ["PASSIVE", "lineStart", "LineStart", 0],
-toindexcmd => ["CALLBACK", "toIndexCmd", "ToIndexCmd" , [\&to_index,$w]],
-fromindexcmd => ["CALLBACK", "fromIndexCmd","FromIndexCmd", [\&from_index,$w]]);
}
sub import
{
my($module,$base)=@_;
my $pkg=(caller)[0];
no strict 'refs';
*{"${pkg}::_reindexbase"}=sub{$base};
}
sub _callbase
{
my($w,$sub)=(shift,shift);
my $supersub=$w->_reindexbase()."::$sub";
$w->$supersub(@_);
( run in 1.172 second using v1.01-cache-2.11-cpan-1e74a51a04c )