in reply to Creating a browser based script to update a data file

This in no way helps to answer your question, but here is an unsolicited refactoring of your title_length sub. Whenever I see the for/push combo, I think of map:
sub title_length { return max( map { length $movies{$_}{title} } keys %movies ); }

Replies are listed 'Best First'.
Re^2: Creating a browser based script to update a data file
by Lady_Aleena (Priest) on Aug 05, 2010 at 17:47 UTC

    toolic, even though it is unsolicited, it is very good advice. I keep forgetting that there are more ways to loop iterate than for. I could find myself doing something akin to...

    my @list = qw(oof rab zab); my $last = pop(@list); for my $thing (@list) { print $thing.'-'; } print $last;

    instead of...

    my @list = qw(oof rab zab); print join('-',@list);

    Ridiculous, I know, but I have probably written similar code plenty of times. My overdependence on for has lead to longer and probably more agonizing code. So, thank you for reminding me of a simpler way to do that loop and other loops I may have that are just like it!

    Have a cookie and a very nice day!
    Lady Aleena