in reply to Re: Prototype for constant items?
in thread Prototype for constant items???
For instance, I want to get warnings/errors for typos like in join @a,@a (the length of @a will be used as delimiter here)
Using \$ excludes functions, if I want functions I can still use \[$&], but there is no way to include constants in this list...
... OK I have to admit that functions are a problem, too! (Because of scoping, evaluation a coderef inside the prototyped function will produce other return values than passing the return value....)
sigh ... seems like I have to rely on something like perl critic to achieve this ..
hmm writing something like the following is a (very unpractical) workaround :
DB<18> tst2 ${ \"1" } SCALAR(0x89baac0)
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Prototype for constant items???
by moritz (Cardinal) on Sep 25, 2009 at 13:37 UTC | |
by LanX (Saint) on Sep 25, 2009 at 13:52 UTC | |
by moritz (Cardinal) on Sep 25, 2009 at 14:04 UTC |