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

Re: Trying to Understand Callback(s)

by ikegami (Patriarch)
on Nov 23, 2017 at 22:53 UTC ( [id://1204174] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub get {
       my ($ua, $url, $cb) = @_;
    ...
       $cb->($foo, $tx);  # Call the referenced sub.
       ...
    }