in reply to Re: CGI.pm's upload gives local filename, not file itself
in thread CGI.pm's upload gives local filename, not file itself
or you could use split, or many other options. :)use File::Basename; my $new_file_name = basename($full_path_name, 'jpg|JPG'); # or $new_file_name = basename($full_path_name, '\..*'); # but this will return "James" from # "James.John.jpg"
jarich
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: CGI.pm's upload gives local filename, not file itself
by giulienk (Curate) on Feb 04, 2002 at 07:58 UTC |