http://www.perlmonks.org?node_id=1027187


in reply to How can one use the print function to get the correct information?

Try changing:
my $result1=(find_student($reg)->display());
to:
my $result1 = find_student($reg)->display();
Update: As golux mentioned, your display function is not returning anything useful.