I'm still learning #Perl, but I think I got hooks working
github.com/cypnk/Perlite/commi…
github.com/cypnk/Perlite/commi…
Added hook() in preparation for event-driven work · cypnk/Perlite@da6e29c
Contribute to cypnk/Perlite development by creating an account on GitHub.GitHub
Gene Boggs
in reply to r҉ustic cy͠be̸rpu̵nk🤠🤖 • • •The old-skool syntax:
```
&{$handler}( %{$data->{params}} );
```
is better written as :
```
$handler->( %{$data->{params}} );
```
Which can also be modernized as:
```
$handler->( $data->{params}->%* );
```
Andrew Hewus Fresh
in reply to Gene Boggs • • •@ology also, is there a `->%*` equvalent for `%{ $_ || {} }` yet or are we waiting on ppc0021?
@cypnk
github.com/Perl/PPCs/blob/main…
PPCs/ppcs/ppc0021-optional-chaining-operator.md at main · Perl/PPCs
GitHubGene Boggs
in reply to Andrew Hewus Fresh • • •