sub pop_page_stack { my $self = shift; if (@{$self->{page_stack}}) { $self = pop @{$self->{page_stack}}; bless $self; } return 1; }