#using the Closured class... use strict; use warnings; use Closured; my $object = Closured->new("Hisham"); #try to feed a constructor directly. print $object,$/; #the constructor retruns a code ref. print $object->name("BioHisham"), "\n"; #Feed via an instance method