in reply to Re: What operator should perl5porters use for safe dereferencing?
in thread What operator should perl5porters use for safe dereferencing?
I think ~ is assigned to regex match already?
No, see perlop
so currently ~> is a syntax error, you can't have unary operator bitwise-negation follow greater than operator, so ~> is free and open for use with no possibility of confusion with anything elseBinary "=~" binds a scalar expression to a pattern match. Binary "!~" is just like "=~" ... Binary "~~" does a smart match between its arguments. Unary "~" performs bitwise negation ""->"" is an infix dereference operator, just as it is in C and C++. nonassoc < > <= >= lt gt le ge
Also, neither > nor ~ nor ~> nor -> are sigils, sigils are $ % @ * as in $ro %sham @bo *dynamite
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: What operator should perl5porters use for safe dereferencing?
by xiaoyafeng (Deacon) on Jun 05, 2012 at 10:16 UTC | |
by BrowserUk (Patriarch) on Jun 05, 2012 at 12:37 UTC | |
by Anonymous Monk on Jun 06, 2012 at 03:05 UTC |
In Section
Past Polls