Check out
Embperl. With this, yes... it's very possible! I don't think the syntax you cite is the Embperl one - perhaps another perl parser out there - I'm pretty sure there are a few.
And those PHP folks still think they're such hot stuff. :-)
Best,
-Adam
P.S. And also there's
Mason - forgot about that one for a sec... :-)