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
In reply to Re: shift vs. @_ (where @_ evaluates to 1)
by Zaxo
in thread shift vs. @_ (where @_ evaluates to 1)
by P0w3rK!d
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |