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 ...
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;
...
1
© 2022 - 2024 — McMap. All rights reserved.