Post the actual code that produces the error. As it is & as already noted, your code (currently) does not produce the error of "Can't call method "hms" on an undefined value".
hms is a method of Time::Piece to get the time parts as string.
Look up Time::Seconds API to get seconds, hours, minutes from difference (object) as noted in Time::Piece.
In reply to Re: Time:Piece help
by Anonymous Monk
in thread Time:Piece help
by sauravrout
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |