in reply to Date function
It looks like you can display the current date and time. You just need to subtract 24 hours from now to get to yesterday.
EDIT (after comment below): Make sure your timezone is set correctly too.
Combine that with strftime() and youre done.localtime( time() - (24 * 60 * 60) );
EDIT (after comment below): Make sure your timezone is set correctly too.
In Section
Seekers of Perl Wisdom