in reply to How can one use the print function to get the correct information?
Try changing:
to:my $result1=(find_student($reg)->display());
Update: As golux mentioned, your display function is not returning anything useful.my $result1 = find_student($reg)->display();
|
---|
In Section
Seekers of Perl Wisdom