home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 December (Special)
/
PCWorld_2005-12_Special_cd.bin
/
Bezpecnost
/
lsti
/
lsti.exe
/
framework-2.5.exe
/
Descriptions.pm
< prev
next >
Wrap
Text File
|
2005-01-27
|
350b
|
26 lines
package Descriptions;
$VERSION = '1.00';
use Attribute::Handlers;
my %name;
sub name {
return $name{$_[2]}||*{$_[1]}{NAME};
}
sub UNIVERSAL::Name :ATTR {
$name{$_[2]} = $_[4];
}
sub UNIVERSAL::Purpose :ATTR {
print STDERR "Purpose of ", &name, " is $_[4]\n";
}
sub UNIVERSAL::Unit :ATTR {
print STDERR &name, " measured in $_[4]\n";
}
1;