in reply to Re: Prototype for constant items???
in thread Prototype for constant items???
Something like join @a,@b is always ever wrong, but it's legal perl syntax.
I'm wishing a possibility to restrict the input to for example "obvious" scalars. The way ref \"1" works is OK for me, because "1" obviously results in a scalar.
It's only frustrating that the prototype mechanism doesn't support any way to achieve this.
IMHO something like "accept every argument where ref argument results in XYZ" would facilitate a lot of error checking.
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Prototype for constant items???
by SuicideJunkie (Vicar) on Sep 25, 2009 at 14:40 UTC | |
by LanX (Saint) on Sep 25, 2009 at 14:55 UTC | |
by SuicideJunkie (Vicar) on Sep 25, 2009 at 16:34 UTC | |
by LanX (Saint) on Sep 26, 2009 at 00:48 UTC | |
by SuicideJunkie (Vicar) on Sep 28, 2009 at 13:53 UTC | |
by Porculus (Hermit) on Sep 26, 2009 at 17:37 UTC | |
by LanX (Saint) on Sep 26, 2009 at 20:17 UTC |