Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How can one define value to call method "display" at line 45?

by Loops (Curate)
on Apr 03, 2013 at 11:50 UTC ( #1026837=note: print w/replies, xml ) Need Help??


in reply to How can one define value to call method "display" at line 45?

What happens if find_student() doesn't find the given student? Undef is returned, which the code then attempts to use as a student object by invoking the display method. You're going to have to check the return value before doing this.
  • Comment on Re: How can one define value to call method "display" at line 45?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026837]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2018-08-17 12:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (178 votes). Check out past polls.

    Notices?