Can anyone give an example of a compile time error (or warning) associated with this invocation technique
No, anonymous hash population is a run-time thing. The compiler doesn't count the elements used for the assignment. PBP is just wrong there.
qwurx [shmem] ~ > perl -wce 'sub foo{} foo({one=>1,two=>})' -e syntax OK
In reply to Re: Named Subroutine Parameters: Compile-time errors vs. Run-time warnings
by shmem
in thread Named Subroutine Parameters: Compile-time errors vs. Run-time warnings
by AnomalousMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |