Jonathan Scott Duff wrote:
> 
> If we had a context coercion operator that was the opposite of want()
> we could do something like this:
> 
>       print context '*STRING', $val;  # long-hand for print $val
>       print context '*SCALAR', $val;  # we're not in a string context
>       print context 'MyClass', $val;  # we're not in a string context

We already have scalar().  We should also have string(), void(), etc.
for the "intrinsic" contexts.

-- 
John Porter

Reply via email to