in reply to following a file with Perl

How does tail -f, the follow mode to tail, work its magic?
man tail
Is there any way to open a file similarly in Perl?
Yes, File::Tail