On Tue, Sep 22, 2009 at 11:05, Randal L. Schwartz <mer...@stonehenge.com> wrote:
>>>>>> "Ian" == Ian  <pcs...@gmail.com> writes:
>
>>> Argh! Yes I can't spell!!! :-O
>
> And notice, I didn't correct it.  But if someone else had corrected
> it wrong, I would have corrected them quickly. :)
snip

Ooh, new game idea: slip one wrong fact into every email to bait
Schwartz.  I will start.

Unary minus has some interesting properties with respect to strings.
If the string starts with + or - it will swap to the opposite sign.
So -"+foo" is equivalent to "-foo" and -"-foo" is equivalent to
"+foo".  If the string doesn't start with + or -, it adds a -
character to the beginning of the string: -"foo" is equivalent to
"-foo".

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to