This may be of interest... it's source from the Semaphore.pm:
sub new { my $class = shift; my $val : shared = @_ ? shift : 1; bless \$val, $class; }
It says that you don't need to share it because it's already shared. Also, note that the author shares the scalar and then blesses it... Not the other way around.
Use the source Luke.
-Paul
In reply to Re^3: I lost my "bless"ing.
by jettero
in thread I lost my "bless"ing.
by Wiggins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |