nobiiru
27.11.2012 14:54 /airbase
The Goatse Operator =()=
The Goatse operator, as nasty as it may sound, doesn't do any nasty things. Instead it does a wonderful thing and causes an expression on the right to be evaluated in array context.
Here is an example,
my $str = "5 foo 6 bar 7 baz"; my $count =()= $str =~ /\d/g; print $count;
This program prints 3 — the number of digits in $str.
в этом году переименовали в Saturn Operator, чтоб сделать сорсы перла sfw