@rivy re/opinion-based: that's why it was
closed rather than
migrated - but IMO the first part ("Is there a canonical practice for assigning value to an argument...") would be perfectly objective and on-topic on SO. As for editing it into shape, I know nothing of perl, so I couldn't tell, but one sure thing is that replacing the MCVE with some real code that doesn't merely just illustrate a point but actually consists the meat of the post (i.e.
do I want feedback on any/all aspects of the code?), would definitely attract reopen votes - the choice is yours! —
Mat's Mug ♦ 5 secs ago