Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: attempting to achieve something

by choroba (Cardinal)
on Mar 16, 2022 at 13:35 UTC ( [id://11142135]=note: print w/replies, xml ) Need Help??


in reply to attempting to achieve something

If I understand you correctly, you want us to write code calling the function that would compile. The following not only compiles, but also runs without problems (in 5.26.1):
#!/usr/bin/perl use warnings; use strict; sub mixedregex { s[\\0([0-7]{3})][chr oct $1]egr; } $_ = '\0123'; print mixedregex(); # S

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found