perlop Questions

1

Solved

I was reading the documentation for the attributes module and came across a method call notation I've never seen: use attributes (); attributes::->import(__PACKAGE__, \$x, 'Bent'); The doc did ...
Winou asked 5/9, 2023 at 16:53

3

Solved

I was wondering if there was an operator name for %+, so instead of code like: /(?<CaptureName>\w+)/; ... my $whatever=$+{CaptureName}; I could use something more readable: use English; ...
Leoni asked 12/2, 2014 at 19:16
1

© 2022 - 2024 — McMap. All rights reserved.