in reply to Specifying the class of an object in the declaration
It associates a "type" with the variable — e.g. for use with fields:
package Foo; use fields qw(foo bar); package main; my Foo $foo = {}; $foo->{baz} = 42;
$ ./882116.pl No such class field "baz" in variable $foo of type Foo at ./882116.pl +line 8.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Specifying the class of an object in the declaration
by FalseVinylShrub (Chaplain) on Jan 14, 2011 at 12:42 UTC |