Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Bare BLOCK vrs. grep BLOCK

by AnomalousMonk (Archbishop)
on Jan 16, 2018 at 01:03 UTC ( [id://1207328]=note: print w/replies, xml ) Need Help??


in reply to Bare BLOCK vrs. grep BLOCK

The  (&@) prototyping mechanism is intended allow user-defined functions to enjoy an approximation of some of the behavior of built-in functions like grep and map, but does not allow exact duplication of all such behavior. I've never tried it myself, but I imagine that if you wanted to do this trick, you'd have to look at the source of the built-in you wanted to emulate and figure out how it achieves its Deep Magick, and then roll your own with, e.g., an Inline::C definition that duplicates the incantations.

Perhaps some much more subtle monk than I can comment further.


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1207328]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found