in reply to shift vs. @_ (where @_ evaluates to 1)
You finction can be written more simply as
or just:sub getFoo{ my ($x,$y) = @_; $x . '_' . $y . '_testme.xml'; }
Notice that the package global names $a and $b are not used. It's best to preserve them for sort.sub getFoo{ sprintf '%s_%s_testme.xml', @_; }
After Compline,
Zaxo
|
|---|