in reply to Anonymous sub clarification
And for that matter,my $hash_ref = { '/' => sub {...} }; get($hash_ref);
Ultimately, you are associating the subroutine handler for the URL; in this case, "/".my $array_ref = [ '/', sub {...} ]; get($array_ref);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Anonymous sub clarification
by haukex (Archbishop) on Jul 21, 2016 at 17:37 UTC | |
by perlfan (Parson) on Jul 22, 2016 at 15:44 UTC |