Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Moose Troublesby CountZero (Bishop) |
on May 28, 2012 at 07:29 UTC ( [id://972787]=note: print w/replies, xml ) | Need Help?? |
When you want the ticket count for another department and/or another status shouldn't you start with a new object, rather than with an already existing object? Your _do_ticket_list method will only be called at the object's initialization, so changing the department id or the ticket status will go unnoticed and the ticket list is never refreshed. Reader beware: my Moose skills may be a bit rusty and the finer issues of builders and triggers may have escaped me. Update: Question: where does your $hd object come from? I never see you initialize it. Or is it perhaps a typo and did you mean $help_desk? CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James My blog: Imperial Deltronics
In Section
Seekers of Perl Wisdom
|
|