We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f436540 + 891b080 commit 47e2f57Copy full SHA for 47e2f57
categories/cookbook/01strings/01-00introduction.pl
@@ -398,6 +398,7 @@ =head2 Advanced Interpolation Control
398
say qh/We have %animal.elems() key in %animal{}/;
399
400
# interpolate functions only: both & and () are required
401
+ sub get_animal ($tag) { return %animal{$tag}; }
402
say q:f/The quick brown &get_animal('quick') jumps.../;
403
say qf/The quick brown &get_animal('quick') jumps.../;
404
0 commit comments