The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WWW::Webrobot::Attributes - define setter/getter for attributes of a class

SYNOPSIS

 use WWW::Webrobot::Attributes qw(attr1 attr2 attr3);

DESCRIPTION

This module is used to define setter/getter for attributes. Access:

 $self->attr1
     return attribute named 'attr1'

 $self->attr1($value);
     set attribute named 'attr1' to value '$value'