Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^3: Tkx after coderef problem

by huck (Parson)
on Jun 03, 2018 at 18:13 UTC ( #1215791=note: print w/replies, xml ) Need Help??

in reply to Re^2: Tkx after coderef problem
in thread Tkx after coderef problem

Sorry, yes it does. Found it! lines 502-518

elsif ($ref eq 'ARRAY' && ref($arg->[0]) eq 'CODE') { # We have been passed something like [\&subroutine, $arg1, ...] # Create a proc in Tcl that invokes this subroutine with args my $events; # Look for Tcl::Ev objects as the first arg - these must be # passed through for Tcl to evaluate. Used primarily for %-subs # This could check for any arg ref being Tcl::Ev obj, but it # currently doesn't. if ($#$arg >= 1 && ref($arg->[1]) eq 'Tcl::Ev') { $events = splice(@$arg, 1, 1); } $args[$argcnt] = $interp->create_tcl_sub(sub { $arg->[0]->(@_, @$arg[1..$#$arg]); }, $events, undef, $current_r); push @codes, $anon_refs{$current_r}; }
Notice how lines 514-516 create a **perl** anon-sub

Sorry, better luck next time!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1215791]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2020-08-08 06:43 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (51 votes). Check out past polls.