Erm, no it won't work as is because he's passing a scalar reference to his object rather than the object ref itself.
Update: Yup, confuzzlingness. I was reading "second snippet" as the second alternative, not the second code section as a whole.
In reply to Re^2: Typecasting a scalar to a module
by Fletch
in thread Typecasting a scalar to a module
by thekestrel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |