How to tell if something is a file or a directory in Perl
(About.com) Lets say you're building a perl script to traverse a file system and record what it finds. As you open file handles, you need to know if you're dealing with an actual file or with a directory since you'll treat them differently...
How to tell if so
Update update feed set failed_fetches=0, fetched=current_timestamp() where feed_id = 1126 failed: 1142 [UPDATE command denied to user '334187_hdlns_ms5'@'10.187.248.89' for table 'feed'] in [update feed set failed_fetches=0, fetched=current_timestamp() where feed_id = 1126]
updated 1126 (Perl PHP), inserted 0, updated 0, at 2012-05-30 15:49:14