* Geoffrey Young <[EMAIL PROTECTED]> [2002-09-12 15:45]: > > Note: If you ever use them in file posts, don't forget to clean the > > file names, especially when it comes from Windows machine... > > I've found this to be reasonably portable for getting just the > filename (sans path) - YMMV > > my ($name) = $upload->filename =~ m!([^/\\]*$)!;
use File::Basename; my $name = basename($upload->filename); (darren) -- There is no expedient to which a man will not go to avoid the real labour of thinking.