12345678910111213141516171819
sub last{ my $self = shift; # ...}sub uidl{ my $self = shift; # ... while(defined($line = $self->getline())) { $line =~ /^\.\s*$/ and last; # ... } # ...}