[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
RE: A common base exception object for Perl - RFC
Sam Tregar <sam@tregar.com> writes:
>On 20 Jan 2000, Martyn Pearce wrote:
>
>> the use of -foo for configuration items seems to me to be something
>> picked up from Tk and/or analogy with command-line calls. I'm not
>> convinced that they help here; and I don't see them used commonly
>> through the non-Tk modules.
I have been known to use it in non-Tk modules too. But probably as
often I don't use it. Tk was a special case - there was piles of Tcl
related documentation which used the leading '-'.
>
>CGI, IPC::ShareLite - two off the top of my head. I figure it's a sort of
>syntax-highlighting for people that don't use emacs cperl-mode and a color
>monitor.
>
>The only bad thing about it is that 5.004 sometimes gets confused and
>treats the - as a unary minus. Even worse, sometimes it does so and
>doesn't print an error!
It _always_ treats it as a unary minus. The trick is that - string
is defined to be '-'.string' .
--
Nick Ing-Simmons
- References to:
-
Sam Tregar <sam@tregar.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]