File::Basename is core and crossplatform.
In reply to Re: Regular Expression Help by Fletch in thread Regular Expression Help by Anonymous Monk