in reply to HTML, Tieing and Late Binding

You can use @{[ your perl here ]} where you call your function like @{[func($something or $other)]}.