in reply to named_arguments in subroutine

The most common way is by passing a hash and accessing its values using keys, which you say you've already tested. Did this not work as you expected?

We could probably give you detailed answers if you provided the code you tested with along with an explanation of what you wanted it to do and how the actual results differed from your intended results. Without that information, though, we'd just be guessing at what you want.