The words subroutine and function are often used
interchangably in perl. (Even perlsub does it!)
What I meant by calling shift "not really a function"
was that it is very
unlike the functions you define in your code, which have
a symbol table entry and thus are associated with
a package, can have coderefs be taken
of them, and be aliased to other names at the symbol table
entry, or imported into other packages, in addition to being callable by the & syntax. | [reply] [d/l] |
You mean you can't override shift like you can with other built-in functions (import into CORE:: if memory serves)?
| [reply] |
| [reply] [d/l] |
Starting with perl version 5.6.1 you can override shift,
like you can with other built-ins.
As an indication of this
prototype("CORE::shift") returns \@ (which seems a little odd considering
the default argument... Hmm...)
| [reply] [d/l] [select] |