I would like to create my own subroutines which would work the same way as print FILEHANDLE LIST works.
Is there any non-magic way to create a subroutine with an optional first argument? Or would that just create confusion in code?
The sub in question would be used to send a job into a queue. In most circumstances, there is only one queue. But there could be others. And the sub takes only one argument.
example:
queue $job; queue OTHER_QUEUE $job;
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |