use Function::Parameters; fun foo ($x) { $x + 1 }