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.