Monday, July 6, 2009

Tilde-Tilde Operator

A bit obscure is the tilde-tilde "operator" which forces scalar context.

print ~~ localtime;

is the same as

print scalar localtime;

and different from

print localtime;

No comments: