Re: The sperm secret operator: is it new?
[email protected] (Andrew Savige) Wed, 14 Mar 2012 13:46:34 -0700 (PDT)
| Newsgroups | perl.fwp |
|---|---|
| Message-ID | <[email protected]> |
> [ ~~ vs. scalar ]=0A=0AThe ~~ secret operator is old hat, good ol' inchwo= rm:=0A=0A=A0http://www.catonmat.net/blog/secret-perl-operators/#inchworm=0A= =0ABooK's innovation is to add <> and <>+0 to the end of it.=0A=0ABTW, in a= ddition to inchworm-on-a-stick ~- to subtract one,=0AI often use the conver= se -~ to add one (though only in Ruby=0Aand Python, not usually Perl). For = example, -~1 produces 2=0A=0Ain Ruby and Python, but -4,294,967,294 in Perl= .=0A=0A=0A/-\